Skip to content
This repository has been archived by the owner on Feb 8, 2019. It is now read-only.

Commit

Permalink
⚡ improvement(examples): update example for vue 2.0 later
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Nov 29, 2016
1 parent 0208751 commit ef60e4f
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions template/examples/add/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,21 @@
<head>
<meta charset="utf-8">
<title>add example</title>
<script src="../../node_modules/vue/dist/vue.min.js"></script>
<script src="../../node_modules/vue/dist/vue.js"></script>
<script src="../../dist/{{ name }}.js"></script>
</head>
<body>
<p>${ value }</p>
<div id="app">
<p>${ value }</p>
</div>
<script>
Vue.config.delimiters = ['${', '}']
var vm = new Vue({
el: 'body',
data: { value: 0 }
})
vm.value = vm.$add(1, 1)
delimiters: ['${', '}'],
data: { value: 0 },
mounted: function () {
this.value = this.$add(1, 1)
}
}).$mount('#app')
</script>
</body>
</html>

0 comments on commit ef60e4f

Please sign in to comment.