[mod] component

This commit is contained in:
Andy Bunce 2021-12-26 16:21:59 +00:00
parent 57ba0a5938
commit 4bea950bbe
2 changed files with 13 additions and 0 deletions

View file

@ -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'
})