Home > Web Front-end > JS Tutorial > What exactly is angularjs? What can angularjs do?

What exactly is angularjs? What can angularjs do?

寻∝梦
Release: 2018-09-06 10:52:06
Original
3298 people have browsed it

This article mainly introduces you to the introduction and role of angularjs. I hope you will read it carefully. Now let us take a look at this article about the introduction and role of angularjs

First of all, we need to understand what angularjs is?

AngularJs (hereinafter referred to as ng) is a structural framework for designing dynamic web applications.

First of all, it is a framework, not a class library. It provides a complete set of solutions for designing web applications like EXT. It is more than just a JavaScript framework, because its core is actually an enhancement of HTML tags. What is HTML tag enhancement? In fact, it allows you to use tags to complete part of the page logic. The specific method is through custom tags, custom attributes, etc. These tags/attributes that are not native to HTML have a name in ng: directive. More on this later. So, what is a dynamic web application? Different from traditional web systems, web applications can provide users with rich operations and can continuously update views with user operations without url jumps. ng official also states that it is more suitable for developing CRUD applications, that is, applications with more data operations, rather than games or image processing applications. To achieve this, ng introduces some great features, including template mechanism, data binding, modules, directives, dependency injection, and routing. Through the binding of data and templates, we can get rid of tedious DOM operations and focus on business logic.

Another question, is ng an MVC framework? Or MVVM framework? The official website mentioned that the design of ng adopts the basic idea of ​​MVC, but it is not entirely MVC, because when writing the code, we are indeed using the ng-controller instruction (at least from the name, it is MVC), but this The business handled by the controller is basically interacting with the view, which seems to be very close to MVVM. Let us turn our attention to the non-eye-catching title of the official website: "AngularJS — Superheroic JavaScript MVW Framework".

Let’s take a look at what angularjs can do?

1. Completely using client-side technology written in JavaScript. Works with other time-honored web technologies (HTML, CSS, and JavaScript) to make web application development easier and faster than ever.

2.AngularJS is mainly 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.

3. The development team of AngularJS describes it as a structured framework for building dynamic web applications.

4.AngularJS makes developing web applications very simple, while also reducing the difficulty of building complex applications. It provides a series of advanced features that developers often use in modern web applications, such as:

  • Decoupling application logic, data models and views;

  • Ajax service;

  • Dependency injection;

  • Browsing history (make bookmarks and forward and back buttons work like normal Works the same in web applications);

  • Testing;

AngularJS is an MV* framework, most suitable for developing client-side single-page applications. It is not a functional library, but a framework for developing dynamic web pages. It focuses on extending the functionality of HTML, providing dynamic data binding, and it can work well with other frameworks (such as jQuery).

If you want to develop a single-page application, AngularJS is your best choice. Applications such as Gmail, Google Docs, Twitter, and Facebook can all take advantage of AngularJS. However, applications that require a lot of DOM manipulation, such as game development, or simply require extremely high running speed, are not the place for AngularJS. (If you want to know more about angularjs, it is recommended to go to the PHP Chinese website AngularJS Learning Manual column to learn)

Finally, we will give a brief introduction to angularjs:

AngularJS redefines the way front-end applications are developed. Rather than cower in the face of the dividing line between HTML and JavaScript, it attacks it head-on and proposes effective solutions. Many front-end application development frameworks, such as Backbone, EmberJS, etc., require developers to inherit some JavaScript objects unique to this framework. This approach has its advantages, but it unnecessarily pollutes the object space of the developer's own code and requires the developer to understand the abstract objects in memory. We accepted this approach nonetheless, because the original design of the web couldn't provide the interactivity we need today, so we needed frameworks to help us bridge the gap between JavaScript and HTML. And with it, you no longer need to "directly" manipulate the DOM. You only need to annotate your DOM with metadata (that is, the directives in AngularJS), and then let AngularJS help you manipulate the DOM. At the same time, AngularJS does not depend on (or hinder) any other frameworks. You can even develop AngularJS applications based on other frameworks.

The above is this article about the introduction of angularjs and some functions of angularjs (if you want to know more about angularjs, go to the PHP Chinese website AngularJS User Manual column to learn more). If you have any questions, you can leave a message below.

【Editor’s Recommendation】

What is the difference between js and node.js? Summary of similarities and differences between js and node.js

What is node.js suitable for? What are the benefits of using node.js?

The above is the detailed content of What exactly is angularjs? What can angularjs do?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template