Comparison between angular and aveon

Source: Internet
Author: User

Angular is looking for a large road, so it is very large, 1.6-17 thousand rows; aveon is designed to provide a front-end development experience away from Dom operations, 0.6.3 only 2420 rows, Min only 29kb.
Avron has copied many good things from angular, such as the {} interpolation expression, MS-model (bidirectional synchronization through events), and MS-controller (specifying scope range for viermodel ), however, all enhancements have been made. After adding an HTML filter to {AAA | HTML}, the innerhtml can be output. MS-model can use data-observe to enable bidirectional synchronization, MS-controller has the twin brother MS-important.

The $ watch and MS-bind methods of aveon provide much more powerful callback functions than angular.

Avron has computing attributes like knockout and emberjs, and angular does not.

Both avron and angular have monitoring arrays, but avron monitoring arrays have a lot of useful methods like knockout, which can automatically synchronize pages, while angular is quite weak.

Both avron and angular have the UI definition function (turning an element into a UI component). Angular uses custom tags and avron uses the MS-UI attribute, however, custom tags are not easy to use in legacy ie. As the browser upgrades, the browser will add a new tag that is exactly the same as you. Aveon is much more secure and has 12 UI components for reference. It is very easy to implement.

Aveon is a method of converting and binding edges by scanning edges. You can see the effect immediately after you open the page. Angular only needs to scan all the scans before converting the binding. Therefore, you may see some strange templates.

Aveon defines viewmodel through the define method, and has the elements and viewmodel specified by the scan method. Angular requires the user to expose the xxxxctrl function to the global scope, and the framework will assemble it by itself.

Aveon has a $ JSON value in viewmodel, that is, the model of the pure data corresponding to the viewmodel (the viewmodel automatically synchronizes the view and model values each time it is operated ), we can directly put it in Ajax for use. Angular does not have an independent model and needs to be converted by itself.

Aveon uses Object. defineproperty and vbs to implement viewmodel. Angular compiles the entire xxxxctrl function and converts a large number of getters and setter to implement bidirectional binding. Therefore, angular is quite bulky.

The value bound to aveon is a property or array or expression of viewmodel. Angular allows users to define new variables and objects in the view. This is a bad feature and makes the page very difficult to maintain.

The binding of aveon has been powerful enough to completely remove users from Dom writing services. At most, it takes checked, disabled, and other status values of form elements. Angular is still a traditional approach, only add the data binding mechanism after 1.0.

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.