[mod] component
This commit is contained in:
parent
57ba0a5938
commit
4bea950bbe
2 changed files with 13 additions and 0 deletions
|
|
@ -56,3 +56,12 @@ var app = new Vue({
|
|||
this.load()
|
||||
}
|
||||
});
|
||||
//Define a new global component called button-counter
|
||||
app.component('my-link', {
|
||||
data() {
|
||||
return {
|
||||
count: 0
|
||||
}
|
||||
},
|
||||
template: '#cmp-link'
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue