Guide
- Installation
- Getting Started
- Overview
- The Vue Instance
- Data Binding Syntax
- Computed Properties
- Class and Style Bindings
- Conditional Rendering
- List Rendering
- Methods and Event Handling
- Form Input Bindings
- Transitions
- Components
- Reactivity in Depth
- Custom Directives
- Custom Filters
- Mixins
- Plugins
- Building Large-Scale Apps
- Comparison with Other Frameworks
- Join the Vue Community!
Installation
Compatibility Note
Vue.js does not support IE8 and below, because Vue.js uses ECMAScript 5 features that are un-shimmable in IE8. However Vue.js supports all ECMAScript 5 compliant browsers.
Release Notes
Detailed release notes for each version are available on GitHub.
Standalone
Simply download and include with a script tag. Vue
will be registered as a global variable. Pro tip: 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, 26.19kb min+gzip
CDN
Available on jsdelivr or cdnjs (takes some time to sync so the latest version might not be available yet).
Also available on unpkg, which will reflect the latest version as soon as it is published to npm. You can also browse the source of the npm package at unpkg.com/vue/.
CSP-compliant build
Some environments, such as Google Chrome Apps, enforces Content Security Policy (CSP) and does not allow the use of new Function()
for evaluating expressions. In these cases you can use the CSP-compliant build instead.
NPM
NPM is the recommended installation method when building large scale apps with Vue.js. It pairs nicely with a CommonJS module bundler such as Webpack or Browserify. Vue.js also provides accompanying tools for authoring Single File Components.
|
CLI
Vue.js provides an official CLI for quickly scaffolding ambitious Single Page Applications. It provides battery-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:
|
Dev Build
Important: the CommonJS bundle distributed on NPM (vue.common.js
) is only checked-in during releases on the master
branch, so the file in the dev
branch is the same as the stable release. To use Vue from the latest source code on GitHub, you will have to build it yourself!
|
Bower
|
AMD Module Loaders
The standalone downloads or versions installed via Bower are wrapped with UMD so they can be used directly as an AMD module.