Home >Web Front-end >JS Tutorial >What is Angular
Angular is a front-end framework for creating a single application interface. It has many core features such as data binding, services, directives, dependency injection, etc. It has powerful module functions and has the advantages of custom commands
[Recommended courses:Angular Tutorial】
Introduction to Angular
AngularJS was created by Misko Hevery and others in 2009, and was later acquired by Google. It is an excellent front-end JS framework that is used in many products. It is not only a front-end development framework with advanced concepts, but also an end-to-end solution. It follows the MVC pattern in architectural design and advocates loose coupling of data and logical processing components. AngularJS realizes the natural extension of HTML through instruction technology, and realizes two-way automatic synchronization of data model and display view through compilation technology, alleviating complex DOM operations. In addition, it also provides good support for front-end automated testing technology.
Angular’s core features
Data binding: Represents the automatic synchronization of data between model and view components.
Controller: Indicates that Javascript functions are bound to a specific scope.
Services: Angular is equipped with multiple built-in services, for example $http can be used as an XMLHttpRequest request. But these single objects can only be instantiated once in the application.
Filter: Indicates selecting a subset from the entries of an array and returning a new array.
Directives: Directives are about DOM element tags. Can be used to create custom HTML tags as new custom widgets.
Template: refers to the view that conforms to the information rendered from the controller and model. Can be a single file or multiple views on a page
Routing: used to switch views
Model view: not in A true implementation of the MVC design pattern, but closer to the MVVM (Model-View-View-Model) design pattern
Dependency Injection: Angular has a built-in dependency injection subsystem that developers Applications can be used to make development, understanding and testing easier.
Advantages and Disadvantages of Angular:
Advantages of Angular: The template is powerful and is a relatively complete front-end framework with custom commands. use many times. ng modularization introduces Java-related knowledge and rules to easily write reusable code
Disadvantages of Angular: It is easy to get started, but it is still difficult to understand in depth. In addition, applications written in Angular are not secure, and server-side authentication and authorization are necessary to ensure the security of the application.
Summary: The above is the entire content of this article, I hope it will be helpful to everyone
The above is the detailed content of What is Angular. For more information, please follow other related articles on the PHP Chinese website!