0👍
I don’t think you need to replace the whole HTML.
Just make a model like :
data() {
return {
text: ''
}
}
And then in mounted state or else depends on your situation:
mounted() {
let vm = this;
vm.text = 'test123';
}
In your HTML use this:
<template><div id="id_1" v-on:click="method(value)">{{text}}</div></template>
Hope it will helps you 🙂
- [Vuejs]-While using nuxt2.3.x to import async component met error with Reason: SyntaxError: Unexpected identifier
- [Vuejs]-How to import excel file in mysql using laravel 5.7 with vue JS
Source:stackexchange.com