angular - Multiline string with typescript - Angular2 -


i'm angular2 beginner , i've written piece of code in dev/app.component.ts

enter image description here

it works, when go browser "max brown displayed". want write template part on different lines this:

enter image description here

but error in chrome console:

uncaught typeerror: cannot read property 'split' of undefined 

wrap text in ` (backticks) instead of single quotes ', can span multiple lines.

var mystring = `abc def ghi`; 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -