What the hell is Angularjs? What can angularjs do?

Source: Internet
Author: User
This article mainly introduces to you about the introduction and function of ANGULARJS. I hope you read carefully, now let us come to see this article about the introduction and role of ANGULARJS

First of all, we need to know what ANGULARJS is.

AngularJs (referred to as NG later) is a structural framework for designing Dynamic Web applications.

First, it is a framework, not a class library, and is like Ext provides a complete set of scenarios for designing Web applications. It's not just a JavaScript framework, because its core is actually an enhancement to HTML tags. What is HTML tag enhancement? In fact, you can use the label to complete part of the page logic, the way is through custom tags, custom attributes, and so on, these HTML raw tags/attributes have a name in NG: Directive (Directive). Details will be presented later. So what is Dynamic Web application? Unlike traditional web systems, Web applications can provide users with a rich range of operations that can be continuously updated with user actions without URL jumps. Ng has also declared that it is more suitable for developing CRUD applications, which are more applications for data manipulation than for games or image processing applications. To achieve this, Ng introduces some very good features, including template mechanics, data binding, modules, directives, dependency injection, and routing. The binding of the data to the template allows us to get rid of the tedious DOM operations and focus our attention on the business logic.

Another question, Ng is the MVC framework? Or the MVVM framework? The website mentions that Ng's design uses the basic idea of MVC, not exactly MVC, because we do use the Ng-controller directive (at least from the name, MVC) when writing code. But the controller's business is basically interacting with the view, so it looks very close to MVVM. Let's move to the non-prominent title on the official website: "Angularjs-superheroic JavaScript MVW Framework".

Let's see what Angularjs can do.

1. Client-side technology written in full use of JavaScript. Working with other historic web technologies (HTML, CSS, and JavaScript) makes Web application development easier and faster than ever.

2.AngularJS is primarily used to build single-page Web applications. It makes building interactive, modern web applications easier by increasing the level of abstraction between developers and common Web application development tasks.

The 3.AngularJS development team described it as a structured framework for building dynamic Web applications.

4.AngularJS makes it easy to develop Web applications, but it also reduces the difficulty of building complex applications. It provides a range of advanced features that developers often use in modern web applications, such as:

    • Decoupling application logic, data models, and views;

    • Ajax services;

    • Dependency Injection;

    • Browsing history (make bookmarks and forward, back buttons work as you would in a normal web app);

    • Test

ANGULARJS is a mv* framework that is best suited for developing client-side single-page applications. It is not a library of functions, but a framework for developing dynamic Web pages. It focuses on extending the functionality of HTML, providing dynamic data binding, and it works well with other frameworks such as jquery.

If you're developing a single-page application, Angularjs is your top choice. Apps like Gmail, Google Docs, Twitter, and Facebook all have the ANGULARJS advantage. But applications such as game development that do a lot of manipulation of the DOM, or simply require very high speeds, are not angularjs. (Want to see more angularjs knowledge, recommend to Topic.alibabacloud.comAngularJS Study Manual column study)

Finally, let's make a brief introduction to ANGULARJS:

AngularJS redefined how the front-end application was developed. In the face of the line between HTML and JavaScript, it is not shy, but the positive attack, put forward an effective solution. Many front-end application development frameworks, such as backbone, EMBERJS, etc., require developers to inherit some JavaScript objects specific to this framework. This approach has its merits, but it unnecessarily pollutes the developer's own code object space and requires the developer to understand the abstract objects in memory. Even so we accepted this approach, because the initial design of the network did not provide the interactivity we needed today, so we needed a framework to help us fill the gap between JavaScript and HTML. And with it, you don't have to "directly" manipulate the DOM, just give your dom a metadata (i.e. the directive in Angularjs) and let Angularjs help you manipulate the DOM. At the same time, ANGULARJS does not rely on (and does not hinder) any other framework. You can even develop ANGULARJS applications based on other frameworks.

This is the article about Angularjs introduction and angularjs Some of the role of the articles (want to know more angularjs knowledge, to the Topic.alibabacloud.comAngularJS User manual column to learn more). If you have questions, you can leave a comment below.

Related Article

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.