Error in angular2 component

Nov 20 2016 12:35 AM
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();
}
}
 
 

Answers (10)