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

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -