I am getting spacing issue with the template field in Angular2
This is my code.
@Component({
selector: 'my-component',
template: ' <h1 class="test">
Angular 2 Template
</h1>',
styleUrls: ['./assets/style.css']
})
This does not work
@Component({
selector: 'my-component',
template: ' <h1 class="test">Angular 2 Template</h1>',
styleUrls: ['./assets/style.css']
})
This works