This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
|
|
12 anni fa | |
|---|---|---|
| dist | 12 anni fa | |
| examples | 12 anni fa | |
| src | 12 anni fa | |
| test | 12 anni fa | |
| .gitignore | 12 anni fa | |
| .jshintrc | 12 anni fa | |
| .npmignore | 12 anni fa | |
| Gruntfile.js | 12 anni fa | |
| LICENSE.md | 12 anni fa | |
| README.md | 12 anni fa | |
| TODO.md | 12 anni fa | |
| bower.json | 12 anni fa | |
| component.json | 12 anni fa | |
| package.json | 12 anni fa |
Mini MVVM framework
[ WARNING pre-alpha status - tests not complete! ]
Component
$ component install yyx990803/seed
Browserify
$ npm install seed-mvvm
Bower
$ bower install seed
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. seed will be registered as a global variable. You can also use it directly over Browserify CDN at http://wzrd.in/standalone/seed-mvvm
First, install dependencies:
$ npm install
To watch and auto-build dev version during development:
$ grunt watch
To test:
$ grunt test
To build:
$ grunt
Simplest possible example:
HTML
<div id="demo">
<p sd-text="hello"></p>
</div>
JavaScript
new seed.ViewModel({
el: '#demo',
data: {
hello: 'Hello World!'
}
})
MIT