I have this code which works as expected;
import {Component} from 'angular2/core';
@Component({
selector: 'media-tracker-app',
templateUrl: 'app/app.component.html',
styles: [' h1 { color: #ffffff; }']
})
export class AppComponent {}
but if I put some new lines in to make the CSS more readable like this:
import {Component} from 'angular2/core';
@Component({
selector: 'media-tracker-app',
templateUrl: 'app/app.component.html',
styles: [' h1 {
color: #ffffff;
}']
})
export class AppComponent {}
... then it breaks my code.
In the console I get: SyntaxError: unterminated string literal
I am just starting to learn Angular 2... any ideas?