What is angular? Why should we study it?

Source: Internet
Author: User

When I updated Ionic , someone asked me what is Angular, why should we study it? This is my negligence, in not telling you what is Angular, let everyone start to learn Ionic. So today let us know what is angular, and why we have to learn it.

AngularJS was originally developed by Misko Hevery and Adam Abrons in 2009 and later became a Google project. Angularjs makes up for the lack of HTML in building applications by using the identifier (directives) structure to extend the HTML vocabulary in Web applications, allowing developers to use HTML to declare dynamic content, making web development and testing easier.

Angularjs Version Introduction

https://github.com/angular/angular.js/releases/

Angularjs Features: AngularJS is an HTML designed specifically for applications.

AngularJS makes it easier to develop a modern single-page application (Spas:single page applications).

1 AngularJS bind application data to HTML elements.

2 AngularJS can clone and repeat HTML elements.

3 AngularJS can hide and display HTML elements.

4 AngularJS can add code to the HTML element "behind".

5 AngularJS Support Input validation

Angularjs claims that the following are the main features of next-generation Web applications:

1.MVC

2. Modularity and Dependency Injection

3. Bidirectional data binding

4. Directives and UI controls

1. MVC Architecture

ANGULARJS uses the MVC architecture to develop Web applications. To implement MVC, you just split your application and all the rest is managed by ANGULARJS. The MVC architecture represents the Model view controller, where:

    • The model is responsible for maintaining the data
    • View is responsible for displaying the data
    • The controller is connected to the model and view

2. Directives

Directives allow you to change the exact operation of the HTML tag. This is a very powerful feature that allows you to create custom labels. Using a directive tag tells the compiler to add some functionality to the DOM element and even make changes to it. There are also a number of preset directives available in the ANGULARJS, which you can choose based on your actual needs.

3. POJO

Each object used in Angularjs is a Pojo (traditional JavaScript object), which means you don't need extra getter and setter functions. Pojo can provide you with all the standard JavaScript functions for object manipulation. It can help you remove and add properties from objects and skip certain objects as needed.

4. Easy to use

Angularjs has a rich set of features that make the development process easier by reducing code authoring requirements, eliminating the challenges we face when implementing the MVC architecture. To implement a data model, you don't need to write getter and setter functions. In addition, directives are not part of the application code, so other parallel development teams can manage them. All this minimizes the programming requirements of the developer for the development effort.

5. Testing with Dependency Injection

Applications that are not rigorously tested are incomplete. In fact, testing ensures that there is no important way to deliver errors in the project. ANGULARJS has included tests in the build process. Using ANGULARJS to create an application that is fully connected to dependency injection, you can easily inject sample data into the controller to detect its output and how it is operating as expected.

6. Client Solutions

ANGULARJS works on the client side, but it can also be compatible with desktop and mobile browsers. Angularjs can be used to create any project without any modifications to the backend, so we could use it to develop any application front end. In addition, because the ANGULAJS itself belongs to the client and can run on any JavaScript-enabled browser, the implementation of the application deployment effort becomes less difficult.

7. Flexible filter

The filter will redefine the value before it is displayed, such as changing the decimal point of a numeric value, converting a string to uppercase, and so on. These filters are very similar to the instructions and can function in a stand-alone way, specifically for tasks in Data transformation. You can also create a custom filter to suit your needs.

Want to learn more about angular click more Resources

What is angular? Why should we study it?

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.