TutorialLesson 7Free preview
AngularJS Data Binding
This lesson is part of AngularJS · All levels
Summary
AngularJS supports two-way data binding where views and models automatically synchronize with each other. Whenever there's a change, the digest cycle will evaluate all the bindings and update the look. You can use {{}} to display values or ng-bind to write text to elements.
Key points
- Two-way binding synchronizes the view with the model
- The digest cycle evaluates the entire binding
- $apply is used to trigger digests from external code
- Ng-bind writes value to textContent element
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.