Angularjs is a front-end framework developed by Google, with only 1500 lines of angular.js dedicated to easing the pain of developers in developing AJAX applications.
ANGULARJS application: View is Dom,controller is the JavaScript class, model is stored in the object properties.
Data binding automatically synchronizes the data between model and view. The way angular implements data binding allows us to think of the model as the only trusted source of data in the program. View is always a projection of the model. Whether the model or view changes, it is automatically reflected to the other side, data binding is bidirectional. The template is compiled in the browser and produces a real-time updated view during the compilation phase. Model becomes the only real source of data in the program.
Angular's dependency injection simply takes what it needs without creating what they depend on. In short, the dependency injection relationship angular will intelligently help developers deal with it without the need for developers to worry about it.
Data binding
Ng-app indicates angularjs scope.
{{angular expression}} expression cannot have conditional branching, loops, throws an exception.
The Ng-model corresponds to the model of value in view.
<! DOCTYPE html>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6D/CE/wKiom1VsE0mQdkarAABKQ3Z52Cs580.jpg "title=" 1111. PNG "alt=" wkiom1vse0mqdkaraabkq3z52cs580.jpg "/>
Changes to input text are reflected in a timely manner below.
AngularJS Study Notes (i)