Using single quotes for multiple lines in VueJs

Home / Uncategorized / Using single quotes for multiple lines in VueJs

Question:
Hey i’m trying to learn VueJs at the moment and wanted some help with the template property.

Currently, I have to enter some text in the template like this
template : ‘

But I wanted to do something like
template : ‘


Using the later syntax gives and unexpected symbol syntax error.

Any ideas how I could use the second syntax to make the readability of the code better?

Cheers


Answer:
Use back-ticks instead:template : `


`
Read more

Leave a Reply

Your email address will not be published. Required fields are marked *