const Start= {
data(){
return {
show: true,
short: 1
}
},
methods: {
async Start(){
const app = Vue.createApp(MyComponent)
console.log(app.count) <---- вот тут "undefined"
}
}
}
const MyComponent = ({
data() {
return { count: 4 }
},
methods: {
TestMetod(){
this.count++
}
}
})
const fragment = document.createDocumentFragment();
const app = createApp(MyComponent).mount(fragment);
console.log(app.count);
console.log(app.$data.count);