[Vuejs]-Quotes in vuejs templates

3👍

The issue is from you using single quotes to declare your template.

template: '...'

I would suggest using the template literals and you don’t need to include backslashes for end lines and such.

template: `...`

The other option you have is escaping the following single quote

template: '\'somestring\''

0👍

if you are using single quotes anywhere, you cant use single quotes again inside there.

use template literals or care about single-double quotes.

Leave a comment