Vue v2.0.0-alpha.1 发布了。
The template parser no longer relies on the DOM (unless you are
using the real DOM as your template), so as long as you are using string
el option), you will still be subject to those limitations.
The compiler (the part which converts a template string to a render function) and the runtime can now be separated. There will be two different builds:
Standalone build: includes both the compiler and the runtime. This functions basically exactly the same Vue 1.x does.
Runtime only build: since it doesn't include the compiler, you need
to either pre-compiled templates in a compile step, or manually written
render functions. The npm package will export this build by default,
since when consuming Vue from npm, you will likely be using a
compilation step (with Browserify or Webpack), during which
vue-loader will perform the template pre-compilation.
将普通的 JS 对象作为 model
组件化 UI 构建