Home >Web Front-end >JS Tutorial >What should you know about learning AngularJS?
To learn AngularJS, you must first understand the MVC pattern, that is, "Model--View--Controller".
Model:
Contains the data that needs to be used; there are two A model in a broad sense: the view model, which only represents the data passed from the controller to the view; the domain model, which contains the data in the business domain, as well as the various operations, transformations and rules used to create, store and manipulate these data, collectively called It is the model logic.
Controller:
It is the channel between the data model and the view. The controller will add business domain logic (also called behavior) to the scope, where the scope Is a subset of the model;
View:
is defined using HTML elements, which are enhanced or generated using data binding or instructions.
To be continued
The above is the detailed content of What should you know about learning AngularJS?. For more information, please follow other related articles on the PHP Chinese website!