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

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

post - imageshack API cURL -