ide - Using single quotes for multiple lines in VueJs -
i'm trying learn vuejs @ moment , wanted template property.
currently, have enter text in template
template : '<div><task></task></div>'
but wanted
template : '<div> <task> </task> </div>'
using later syntax gives , unexpected symbol syntax error.
any ideas how use second syntax make readability of code better?
use back-ticks instead:
template : `<div> <task> </task> </div>`
Comments
Post a Comment