Source: Mosquito 132 want to promote open, must have a UI library
Any mosquito 132 front-end frame, especially the domestic, mosquito 132 want to promote open, must have a UI library, light a core library when bald Commander is not. In addition, there is a small circle, for everyone to encounter problems can ask questions, together to improve. Since Avalon married into "where to go to the net", with a professional full-time team to do, its development is rapid.
First of all, make a lesson to the previous friends who have not contacted Avalon to listen. Avalon is a front-end framework for a MVVM architecture that is very similar to the knockout, angular, ember,react goal of focusing on the data model itself and not handling the DOM itself manually. Because of this, it is very different from the current mainstream of jquery, the 90% operation of jquery is from the selector engine, always thinking of how to get from a string of class names, tag names, IDs to manipulate the elements, and then use it highly encapsulated elegant prototyping methods to manipulate the elements. But despite the portability of the chain, and the ease with which the API works, we are suffering when we take over the JavaScript code written by others in jquery. Especially the new people, their code is basically writeonly. The bigger the project, the worse the disadvantage. So the back end of that set of class mechanism, design pattern, in front is essential. But the average person is very difficult to write code to apply to that set of things. At this point, we need a layered architecture. MVVM is one of the antidote. Backbone was also very popular the year before last, it brings no change to MVC, but angular it out in seconds, so the latter lets users write less code and has a set of methodologies, how to catalog, how to test, how to define services, how to design instructions ... Copy on line, not like the jquery code thousand people thousand faces, bizarre hundred strange.
What is the advantage of that Avalon relative to angular?
• Lighter, but full-featured, less than 5,000 lines contain 17,000 lines of angular 90% features.
• No angular so many concepts, easy to get started.
• Compatible with IE6, and has more efficient and small volume Avalon.mobile for advanced browsers. and angular only support IE9, you need to say that there are a variety of online programs to make you compatible with IE6, but these programs are very troublesome, but also means that you can not use the other peripheral modules written by foreigners.
• Complete Solutions, packaging (r.js), Permissions (ms-if), UI
• Self-loading loader and solutions for swapping other loaders. Note, the loader is generally used in the development phase, when on-line or recommended package compression.
• A powerful UI library. I've done the mass UI before, and then I've got a pilot UI for Avalon. Before I go to the net, they have a set of onion UI based on Avalon, and finally all the results are wired into this set of Oni UI. Now has 32 components, including the most concerned about the calendar, tables ...