A web application's main purpose is to present and gather data. For this reason angular strives to make both of these operations trivial. This example shows off how you can build a simple form to allow a user to enter data.
controller
and is available in
the scope
with the initial data.input widgets
simply refer to the model and are auto bound.validate
. (Try leaving them blank or entering non digits
in the zip field)user.contacts
array which are then
reflected in the view.