Home  >  Article  >  Web Front-end  >  Share what are the core functions in AngularJS?

Share what are the core functions in AngularJS?

零下一度
零下一度Original
2017-07-23 17:42:581134browse

The following are the most important core features in AngularJS:

  • Data binding: Automatic synchronization of data between model and view components.

  • Scope of application: These objects reference model. They act as the glue between the controller and the view.

  • Controller: These Javascript functions are bound to a specific scope.

  • Services: AngularJS comes with multiple built-in services, such as $http which can be requested as an XMLHttpRequest. These single objects are instantiated only once in the application.

  • Filter: Selects a subset from an array's entries and returns a new array.

  • Directives: Directives are about DOM element tags (such as elements, attributes, CSS, etc.). These can be used to create custom HTML tags as new, custom widgets. AngularJS comes with built-in directives (eg: ngBind, ngModel...)

  • Templates: These conform to the rendered view from the controller and model information. These can be a single file (such as index.html), or multiple views on a page using "homonym".

  • Routing: It is the concept of switching views.

  • Model View: MVC is a design pattern that divides an application into different parts (called models, views, and controllers), each with different Responsibilities. AngularJS does not implement MVC in the traditional sense, but is closer to MVVM (Model-View-ViewModel). The AngularJS team uses it as a model view.

  • Deep links: Deep links enable application state to be encoded in the URL and be added to bookmarks. The application can be restored to the same state from the URL.

  • Dependency Injection: AngularJS has a built-in dependency injection subsystem that developers can use to make applications easier to develop, understand, and test.

The above is the detailed content of Share what are the core functions in 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