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

php - mysql multiple keyword search in any order -

unity3d - Problems porting a GLSL shadertoy shader to unity -

ios - Summing the heights of the views inside my stackview -