Home > Web Front-end > JS Tutorial > body text

What should you know about learning AngularJS?

零下一度
Release: 2017-06-26 15:44:21
Original
1097 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template