This article mainly introduces AngularJS basic knowledge, including AngularJS definition and features, as well as the method for building AngularJS applications.
AngularJS definition and features
1. open-source google front-end framework
2. MVVM (model view-model) design mode: The Model will interact with the ViewModel (through the $ scope object) and listen to the changes of the Model. These can be sent and rendered by View, and your code is displayed by HTML.
3. convenient REST
4. data binding and dependency injection
5. You can operate HTML like XML. AngularJS uses its own compiler and directives to complete relevant settings.
6. the template is passed to Angular compiler as a DOM element.
7. AngularJS extends HTML through commands and binds data to HTML through expressions.
Construct angularJS applications
Add the Angular script tagLabel
The code is as follows: