Correcting teacher:PHPz
Correction status:qualified
Teacher's comments:
全局注册
const app = Vue.createApp();
app.component('button-counter', {
template: '#counter',
data(){
return{
count: 0,
};
},
});
局部组件
const app = Vue.createApp({
components: {
buttonCounter :{
template: '#counter',
data(){
return{
count: 0,
};
},
},
},
});