[Vuejs]-Vue.js components are not working in jsp files

0๐Ÿ‘

I didnt manage to fins a solution to my problem, However I found an alternative that worked. Vue.js also has inline templates that has the same functionality as x-templates. A solution was to to put the following tag:

<hotel></hotel> 

with the inline-template attribute with it. The end result would look like this

<hotel inline-template></hotel>

0๐Ÿ‘

You should load vue.js just before the tag, not in the head area.

This will allow you to use the template: with your template in backticks (โ€œ) โ€“ that way you can have a multi-line template without having to build it as a string.

Leave a comment