Home >Web Front-end >JS Tutorial >What should you know about learning AngularJS?

What should you know about learning AngularJS?

零下一度
零下一度Original
2017-06-26 15:44:211103browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn