Go to file
Evan You c7b2d9ca34 nextTick phantomjs fix, unit tests for batcher, config() api addition 2013-12-24 15:34:22 -05:00
dist "Release v0.7.0" 2013-12-23 20:14:39 -05:00
examples allow child VMs $data to be swapped 2013-12-23 19:48:14 -05:00
src nextTick phantomjs fix, unit tests for batcher, config() api addition 2013-12-24 15:34:22 -05:00
tasks add grunt size task 2013-12-23 20:56:00 -05:00
test nextTick phantomjs fix, unit tests for batcher, config() api addition 2013-12-24 15:34:22 -05:00
.gitignore add grunt size task 2013-12-23 20:56:00 -05:00
.jshintrc naive implementation 2013-07-28 23:23:56 -04:00
.npmignore npmignore 2013-12-23 22:31:05 -05:00
.travis.yml travis only build master 2013-11-15 14:07:19 -05:00
Gruntfile.js organize grunt tasks 2013-12-24 12:55:14 -05:00
LICENSE remove todo 2013-10-23 22:42:15 -04:00
README.md readme + grunt build 2013-12-23 21:37:03 -05:00
bower.json "Release v0.7.0" 2013-12-23 20:14:39 -05:00
component.json nextTick phantomjs fix, unit tests for batcher, config() api addition 2013-12-24 15:34:22 -05:00
package.json "Release v0.7.0" 2013-12-23 20:14:39 -05:00

README.md

VueJS Build Status

Simple, fast, modular & lightweight MVVM library for building interactive user interfaces.

Features

  • 10kb gzipped, no dependency.
  • DOM based templates with two-way data binding.
  • Precise and efficient DOM manipulation with granularity down to a TextNode.
  • POJSO (Plain Old JavaScript Objects) Models that can be shared across ViewModels with arbitrary levels of nesting.
  • Auto dependency tracking for expressions and computed properties.
  • Auto event delegation on repeated items.
  • Flexible API that encourages composition of components.
  • Extendable with custom directives and filters.
  • Supports partials, transitions and nested ViewModels.
  • Plays well with module systems. Primarily Component based, but can also be used with Browserify, as a CommonJS/AMD module or as a standalone library.

Browser Support

  • Most Webkit/Blink-based browsers
  • Firefox 4+
  • IE9+ (IE9 needs classList polyfill and doesn't support transitions)

Installation

Component

$ component install yyx990803/vue

Browserify

$ npm install vue

Bower

$ bower install vue

Module Loaders, e.g. RequireJS, SeaJS

Built versions in /dist or installed via Bower can be used directly as a CommonJS or AMD module.

Standalone

Simply include a built version in /dist or installed via Bower with a script tag. Vue will be registered as a global variable.

Development

# in case you don't already have them:
# npm install -g grunt-cli component
$ npm install
$ component install

To build:

$ grunt build

To watch and auto-build dev version during development:

$ grunt watch

To test (install CasperJS first):

$ grunt test

Quickstart

HTML

<div id="demo" v-on="click:changeText">
    <p v-text="hello"></p>
</div>

JavaScript

new Vue({
    el: '#demo',
    scope: {
        hello: 'Hello World!',
        changeText: function () {
            this.hello = 'Hello VueJS!'
        }
    }
})

Documentation

Coming soon...

License

MIT