this is very usefull to add cross border html component.
add to .js
new Vue({Remember we are using ` ( key above tab ) not ' by using this (`) key allow you to place raw html on javascript as shown above.
el: '#app',
data: {
HTMLcontent: null,
},
created() {
this.HTMLcontent = `
<div>I'm section one</div>
<div>I'm section two</div>
`;
},
});
call on .html
<div id="app">
<span v-html="HTMLcontent"></span>
</div>