zone.js:344 Unhandled Promise rejection: Failed to load app.template.html in angular2
<p>app.component.ts</p>

<pre><code>import { Component } from '@angular/core';

@Component({
  selector: 'cwf',
  templateUrl: './app.template.html'
})
export class AppComponent {
}
</code></pre>

<p>and in app.template has some text. If add same text as template in typescript file it works. Same thing if add in html and then call the html as template URL it doesnt work.</p>