Vue Template Script Tag

Posted on  by admin
VueJS Useful Resources.

Selected Reading. We have learnt in the earlier chapters, how to get an output in the form of text content on the screen. In this chapter, we will learn how to get an output in the form of HTML template on the screen. To understand this, let us consider an example and see the output in the browser.

Now, suppose we want to show the html content on the page.

If we happen to use it with interpolation, i.e.

Jefferson BruchadoJefferson Bruchado
806

The moment we assign v-html directive to the html element, VueJS knows that it has to output it as HTML content.

TommyFTommyF
5,7161

If we inspect the browser, we will see the content is added in the same way as it is defined in the .js file to the variable htmlcontent : "

Vue Js Template

". Let’s take a look at the inspect element in the browser.