angular - Multiline string with typescript - Angular2 -
i'm angular2 beginner , i've written piece of code in dev/app.component.ts
it works, when go browser "max brown displayed". want write template part on different lines this:
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
Post a Comment