mirror of https://github.com/vuejs/vue.git
no longer use require() when using dist/seed.js
This commit is contained in:
parent
3c5464c0aa
commit
829874eb5b
|
|
@ -29,8 +29,6 @@
|
|||
</div>
|
||||
|
||||
<script>
|
||||
var Seed = require('seed')
|
||||
|
||||
Seed.controller('Grandpa', function (scope, seed) {
|
||||
scope.name = 'John'
|
||||
})
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@
|
|||
<button sd-on="click:two">two</button>
|
||||
<button sd-on="click:three">three</button>
|
||||
<script>
|
||||
var Seed = require('seed')
|
||||
Seed.controller('test', function (scope) {
|
||||
|
||||
// set the data any way you want.
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@
|
|||
<input type="checkbox" sd-checked="checked">
|
||||
<span sd-text="hello | uppercase" sd-class="red:checked"></span>
|
||||
<script>
|
||||
var Seed = require('seed')
|
||||
|
||||
Seed.controller('hello', function (scope) {
|
||||
scope.hello = {get:function () {
|
||||
return scope.checked ? 'red!!!' : 'hello seed'
|
||||
|
|
|
|||
Loading…
Reference in New Issue