I use the seed structure according to the angular.io project. Everything is still fine.
Now I wanted to change the top component to have a view from a separate file, and I'm having problems. Work code:
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 as follows:
templateUrl: 'app.component.html',
where I have the same code in this file as before
<h1>Angular2</h1>
It seems obvious to work, but it is not. It does not spit out errors, but does not display anything except the message "loading ....", as in the demo version to run
thanks for the help
Peter
source share