This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
|
|
%!s(int64=12) %!d(string=hai) anos | |
|---|---|---|
| dist | %!s(int64=12) %!d(string=hai) anos | |
| examples | %!s(int64=12) %!d(string=hai) anos | |
| src | %!s(int64=12) %!d(string=hai) anos | |
| test | %!s(int64=12) %!d(string=hai) anos | |
| .gitignore | %!s(int64=12) %!d(string=hai) anos | |
| .jshintrc | %!s(int64=13) %!d(string=hai) anos | |
| .npmignore | %!s(int64=13) %!d(string=hai) anos | |
| Gruntfile.js | %!s(int64=12) %!d(string=hai) anos | |
| LICENSE.md | %!s(int64=13) %!d(string=hai) anos | |
| README.md | %!s(int64=12) %!d(string=hai) anos | |
| TODO.md | %!s(int64=12) %!d(string=hai) anos | |
| bower.json | %!s(int64=13) %!d(string=hai) anos | |
| component.json | %!s(int64=12) %!d(string=hai) anos | |
| package.json | %!s(int64=12) %!d(string=hai) anos |
Mini MVVM framework
[ BETA - 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
Simplest possible example:
HTML
<div id="demo">
<p sd-text="hello"></p>
</div>
JavaScript
new seed.ViewModel({
el: '#demo',
data: {
hello: 'Hello World!'
}
})