TutorialLesson 6Free preview
AngularJS Model
This lesson is part of AngularJS · All levels
Summary
The ng-model directive binds form elements such as input, select, and textarea to values on $scope, so there is a two-way change in the data. When a user types, the model value changes; and vice versa. ng-models also make the form status property like $valid available for validation.
Key points
- Ng-model binds input form to the scope property
- Changes in view update the model and vice versa
- Work on input, textarea, select, and checkbox
- Make the form controls load validation status like $valid
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.