I am using TemplateUrl in component but its not working its showing below error
Error: Uncaught (in promise): Failed to load http://localhost:3000/dist/app.component.html
my code like that in component
import { Component } from '@angular/core';
import { myService } from './myService';
@Component({
moduleId: module.id,
selector: 'app',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
providers: [myService]
})
export class AppComponent {
title:string = "God's of God - Mahadeva!";
myDetails = [];
constructor(myService: myService) {
this.myDetails= myService.getDetails();
}
}

Sravan Kumar Reddy DudyaluRank #1,248 · 1.4K reputationPosted Dec 7, 2016, 6:15 AM EST
Basavakumar Mudur19 reputationPosted Dec 7, 2016, 8:09 AM EST
Sravan Kumar Reddy DudyaluRank #1,248 · 1.4K reputationPosted Dec 7, 2016, 9:05 AM EST
Basavakumar Mudur19 reputationPosted Dec 8, 2016, 7:38 AM EST
Sravan Kumar Reddy DudyaluRank #1,248 · 1.4K reputationPosted Dec 12, 2016, 1:39 AM EST
// our app is within the app folder
app: 'app',
// our app is within the app folder
app: 'dist', // it refers your js files which are present under dist folder
Basavakumar Mudur19 reputationPosted Dec 12, 2016, 7:24 AM EST
Sravan Kumar Reddy DudyaluRank #1,248 · 1.4K reputationPosted Dec 12, 2016, 7:34 AM EST
Basavakumar Mudur19 reputationPosted Dec 13, 2016, 7:18 AM EST
Sravan Kumar Reddy DudyaluRank #1,248 · 1.4K reputationPosted Dec 14, 2016, 8:30 AM EST
Basavakumar Mudur19 reputationPosted Dec 17, 2016, 8:01 AM EST