Four characteristics of Angularjs

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.