2👍
Just used this code:
new Vue({
el: "#j",
data: {
name: "welcome to vue",
},
})
Don’t use ele
, just use el
- [Vuejs]-Vue.filter is not calling while HTML rendering
- [Vuejs]-Vue JS mutating prop with Alert component
0👍
you can set an event listener:
document.addEventListener('DOMContentLoaded', function () {
new Vue({
el: '#j',
// define data - initial display text
data: {
name: "welcome to vue",
}
})
})
Source:stackexchange.com