- The Vue Instance
- Template Syntax
- Computed Properties and Watchers
- Class and Style Bindings
- Conditional Rendering
- List Rendering
- Event Handling
- Form Input Bindings
- Reactivity in Depth
- Transition Effects
- Transitioning State
- Render Functions
- Custom Directives
- Single File Components
- Deploying For Production
- State Management
- Unit Testing
- Server-Side Rendering
- Migration from Vue 1.x
- Migration from Vue Router 0.7.x
- Migration from Vuex 0.6.x to 1.0
- Comparison with Other Frameworks
- Join the Vue.js Community!
Vue does not support IE8 and below, because it uses ECMAScript 5 features that are un-shimmable in IE8. However it supports all ECMAScript 5 compliant browsers.
Detailed release notes for each version are available on GitHub.
Simply download and include with a script tag.
Vue will be registered as a global variable.
Don’t use the minified version during development. You will miss out all the nice warnings for common mistakes!
Development VersionWith full warnings and debug mode
Production VersionWarnings stripped, 22.86kb min+gzip
NPM is the recommended installation method when building large scale applications with Vue. It pairs nicely with module bundlers such as Webpack or Browserify. Vue also provides accompanying tools for authoring Single File Components.
There are two builds available, the standalone build and the runtime-only build.
The standalone build includes the compiler and supports the
templateoption. It also relies on the presence of browser APIs so you cannot use it for server-side rendering.
The runtime-only build does not include the template compiler, and does not support the
templateoption. You can only use the
renderoption when using the runtime-only build, but it works with single-file components, because single-file components’ templates are pre-compiled into
renderfunctions during the build step. The runtime-only build is roughly 30% lighter-weight than the standalone build, weighing only 16kb min+gzip.
By default, the NPM package exports the runtime-only build. To use the standalone build, add the following alias to your webpack config:
For Browserify, you can use aliasify to achieve the same.
Do NOT do
import Vue from 'vue/dist/vue.js' - since some tools or 3rd party libraries may import vue as well, this may cause the app to load both the runtime and standalone builds at the same time and lead to errors.
Some environments, such as Google Chrome Apps, enforce Content Security Policy (CSP), which prohibits the use of
new Function() for evaluating expressions. The standalone build depends on this feature to compile templates, so is unusable in these environments.
On the other hand, the runtime-only build is fully CSP-compliant. When using the runtime-only build with Webpack + vue-loader or Browserify + vueify, your templates will be precompiled into
render functions which work perfectly in CSP environments.
Vue.js provides an official CLI for quickly scaffolding ambitious Single Page Applications. It provides batteries-included build setups for a modern frontend workflow. It takes only a few minutes to get up and running with hot-reload, lint-on-save, and production-ready builds:
Important: the built files in GitHub’s
/dist folder are only checked-in during releases. To use Vue from the latest source code on GitHub, you will have to build it yourself!
The standalone downloads or versions installed via Bower are wrapped with UMD so they can be used directly as an AMD module.