Joseph knows the source of the HTML content is safe and wants to render the proper HTML content on the browser.
JavaScript Code:
const { createApp } = Vue
const app = createApp({
data() {
return {
GoogleSearch: '<a href="http://google.com">Google</a>'
}
}
}).mount('#app')What is the right syntax to be written in html template to get the output as Google on browsers?
<p> {{GoogleSearch}} </p><p> GoogleSearch </p><p v-link='GoogleSearch'></p><p v-html='GoogleSearch'></p>To get all Infosys Certified VueJS Professional Exam questions Join Telegram Group https://grateful.prepflix.in/infy-lex-pdfs