templateUrl does not work for me
问题 I use the seed structure as per angular.io get started project. Everything OK so far. Now I wanted to change the top component to have a view from a separated file and I get into troubles. The working code is: import {Component, View} from 'angular2/core'; @Component({ selector: 'my-app', template: '<h1>Angular2</h1>', directives: [] }) export class AppComponent { constructor() { } } Then I change the template to templateUrl like so: templateUrl: 'app.component.html', where I have in this