This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
|
|
12 лет назад | |
|---|---|---|
| dist | 12 лет назад | |
| examples | 12 лет назад | |
| src | 12 лет назад | |
| test | 12 лет назад | |
| .gitignore | 13 лет назад | |
| .jshintrc | 13 лет назад | |
| .npmignore | 12 лет назад | |
| Gruntfile.js | 12 лет назад | |
| LICENSE.md | 13 лет назад | |
| README.md | 12 лет назад | |
| TODO.md | 12 лет назад | |
| bower.json | 12 лет назад | |
| component.json | 12 лет назад | |
| package.json | 12 лет назад |
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.
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!'
}
}
})