Answer the question
In order to leave comments, you need to log in
Why are the variable and component not displayed?
I have an app.js with this code:
import Vue from 'vue';
Vue.component('user-name', {
props: ['name'],
template: '<p>Hi {{ name }}</p>'
});
new Vue({
el: "#headerApp",
mounted(){
alert(2);
}
});
<div id="headerApp">
<user-name name="Flavio">!</user-name>!
</div>
<div id="headerApp">{{test}}
<user-name name="Flavio">!</user-name>!
</div>
new Vue({
el: "#headerApp",
mounted(){
alert(2);
},
data() {
return {
test: 222,
};
},
});
Answer the question
In order to leave comments, you need to log in
the answer is here https://stackoverflow.com/questions/49334815/vue-r...
this shit needs to be like this alias: {
'vue$': 'vue/dist/vue.esm.js',
'@': helpers.root('src')
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question