This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core

Evan You 4023d2f9f1 readme draft 12 лет назад
dist 498778ec23 0.3.2 - make it actually work for Browserify 12 лет назад
examples c6903e0074 get ready for tests 12 лет назад
src 498778ec23 0.3.2 - make it actually work for Browserify 12 лет назад
test 498778ec23 0.3.2 - make it actually work for Browserify 12 лет назад
.gitignore 5f5aa8fb40 0.1.0 13 лет назад
.jshintrc a5e27b1174 naive implementation 13 лет назад
.npmignore 498778ec23 0.3.2 - make it actually work for Browserify 12 лет назад
Gruntfile.js c6903e0074 get ready for tests 12 лет назад
LICENSE.md 75fc96a357 license 13 лет назад
README.md 4023d2f9f1 readme draft 12 лет назад
TODO.md 874afe2389 $watch/$unwatch 12 лет назад
bower.json 498778ec23 0.3.2 - make it actually work for Browserify 12 лет назад
component.json 498778ec23 0.3.2 - make it actually work for Browserify 12 лет назад
package.json 498778ec23 0.3.2 - make it actually work for Browserify 12 лет назад

README.md

Seed (WIP)

a mini MVVM framework

  • 8kb gzipped, no dependency.
  • DOM based templates with precise and efficient manipulation
  • POJSO (Plain Old JavaScript Objects) Models FTW - even nested objects.
  • Auto dependency extraction for computed properties.
  • Auto event delegation on repeated items.
  • Flexible API.
  • Component based, but can also be used with Browserify, as a CommonJS/AMD module or as a standalone library.

Browser Support

  • Chrome 8+
  • Firefix 3.6+
  • Safari 5.1+
  • IE9+ (IE9 needs classList polyfill)
  • Opera 11.6+
  • Android browser 3.0+
  • iOS Safari 5.0+

Installation

  • Component:

    $ component install yyx990803/seed
    

    Then in JS:

    var seed = require('seed')
    
  • Browserify:

    $ npm install seed-mvvm
    

    Then in JS:

    var seed = require('seed-mvvm')
    
  • Using Module Loaders Built versions in /dist can be used directly as a CommonJS or AMD module.

  • Standalone: Including a built version in /dist directly will register seed as a global variable.

[ Docs under construction... ]

Simplest possible example (there's much more!):

<div id="demo">
    <p sd-text="hello"></p>
</div>
new seed.ViewModel({
    el: '#demo',
    data: {
        hello: 'Hello World!'
    }
}
})