您需要 登录 才可以下载或查看，没有帐号？立即注册
What about Angular 2? The seasoned developer will also notice that some Angular 2 features are strikingly similar to Vue. And while Angular 2’s performance is impressive and on par with Vue, one should notice that a full-featured Vue 2.0 with compiler included weighs 23kb and is still lighter than the bare-bones version of Angular 2 (50kb). Furthermore, Angular 2 is developed with focus on large enterprise applications. Vue is also well-suited to enterprise environments, but it is also friendly in less demanding environments.
So, what’s new in Vue 2.0?
The new rendering layer provides significant performance improvements compared to v1, and makes Vue 2.0 one of the fastest frameworks out there. In addition, it requires minimal effort in terms of optimization because Vue’s reactivity system is able to precisely determine components that need to be re-rendered in a large and complex component tree, according to Evan You via medium.com.
In a UI rendering scenario, where manipulating the DOM is the most resource intensive operation Vue.js will offer a 20 to 50 percent performance boost , because of the way Vue deals with overheads on DOM manipulations. In fact, an unoptimized, out-of-the-box Vue is faster than a fully-optimized React implementation. A more detailed description of the Vue.js performance compared to React.js can be found here .
Additionally, in Vue 2.0 developers get maximum flexibility in terms of development style. The template-to-virtual-DOM compiler and the runtime can be separated, allowing for shipping pre-compiled templates, and, subsequently, runtime only apps. You said “the 2.0 runtime-only build weighs at only 16kb min+gzipped, and totals at 26kb even with vue-router and vuex included, on par with the v1 core alone!”
From a compatibility standpoint, except some minor deprecations, Vue 2.0 is broadly compatible with previous iterations. Check out the same official examples written in 2.0 – you will see that not much has changed!
下一篇：A Technical Follow-Up: How We Built the World's Prettiest Auto-Generated Tr