update vue.js synthax

This commit is contained in:
edbrz9 2022-12-31 20:54:31 +01:00
parent 372be64aa4
commit f340041389
1 changed files with 11 additions and 10 deletions

View File

@ -1,4 +1,6 @@
const ppbut = {
Vue.component('ppbut' ,{
template : `
<div>
<button
@ -48,14 +50,13 @@ const ppbut = {
}
}
}
}
new Vue({
el: '#root',
data: {
name: 'coco'
},
components: { ppbut }
})
let vm = new Vue({
data () {
return {
name: 'coco'
}
}
}).$mount('#root')