Home >Web Front-end >JS Tutorial >What is the difference between angularjs and vue

What is the difference between angularjs and vue

清浅
清浅Original
2019-02-22 11:42:2719230browse

The differences between angularjs and vuejs are: 1. angularjs is an mvvm framework that is difficult to learn, while vuejs is a progressive framework, which is simple and easy to use; 2. angularjs is instantiated under the entire html page, while vuejs requires An el object to instantiate.

What is the difference between angularjs and vue

[Recommended courses: AngularJS Tutorial, vuejs tutorial

Features of AngularJS:

AngularJS is a product launched by Google Web application development framework. It provides a series of well-compatible and extensible services, including data binding, DOM operations, MVC design pattern, module loading, etc.

(1) It belongs to the mvvm framework. The framework is complex and requires the introduction of a large number of files to implement a certain function.

(2) Module (Module) Controller (Contoller) Dependency Injection

(3) Two-way data binding: Interface operations can be reflected in the data in real time, and data changes can be displayed in the interface in real time.

(4)Instruction(ng-click ng-model ng-href ng-src ng-if...)

(5)Service($compile $filter $interval $timeout $http...)

What is the difference between angularjs and vue

Features of vue.js

vue.js is a tool for building user interfaces Progressive framework. Designed with bottom-up incremental development. Its goal is to achieve responsive data binding and combined view components through a simple API

(1) Modularization. Currently, the hottest way is to directly use ES6 modularization in the project and combine it with Webpack. Project packaging

(2) Componentization, create a single component file with the suffix .vue, including template (html code), script (es6 code), style (css style)

(3 ) Routing

What is the difference between angularjs and vue

The difference between AngularJS and vue.js

(1) Angular is an mvvm framework, while vue is a progressive The framework is equivalent to the view layer, and is a lightweight framework, while angularjs is more comprehensive but not as fast as vuejs

(2) Both have two-way binding, but Angularjs is based on the dirty checking mechanism, vue It is implemented based on ES5 getter and setter

(3) Angularjs is difficult to get started, but vuejs is simple and easy to learn

(4) Angularjs instructions are all ng-xxx, while vuejs instructions are all It is v-xxx

(5) Angularjs is instantiated under the entire html page, while vue requires an el object for instantiation

(6) Angularjs is suitable for the development of large projects , vuejs is generally used for mobile development

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 the difference between angularjs and vue. 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