Angularjs Four characteristics:
1. MVC mode:
Model: Data, in fact, is the angular variable ($scope. XX, $rootScope. xx);
View: Data rendering, html+directive (instruction);
Controller: Operation data, is function, data deletion and modification;
2, two-way binding:
Direction one: Model--->view
{model Data}} or <xxx ng-xxx= "model data" > Model change view to change;
Direction two: View--->model
< form control Ng-model= "model data Name" > View change model followed by change;
3. Dependency Injection:
Dependency Injection (Dependency injection, short di) is a design pattern, meaning that an object relies on other objects without manual creation, only need to "Roar a voice", when this object is created, its dependent objects are automatically created by the framework and injected into, in fact, is the least knowledge rule; All service and Provider objects in the module can implement DI based on the parameter name.
4. Modular Design:
Cohesion the principle of low coupling,
1) officially supplied modules Ng, Ngroute, Nganimate, Ngtouch
2) User-definable module angular.module (' Module name ', [])
Four characteristics of Angularjs