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();
}
}
Basavakumar MudurPosted Dec 17, 2016, 1:01 PM
Sravan Kumar Reddy DudyaluPosted Dec 14, 2016, 1:30 PM
Basavakumar MudurPosted Dec 13, 2016, 12:18 PM
Sravan Kumar Reddy DudyaluPosted Dec 12, 2016, 12:34 PM
Basavakumar MudurPosted Dec 12, 2016, 12:24 PM
Sravan Kumar Reddy DudyaluPosted Dec 12, 2016, 6:39 AM
// 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 MudurPosted Dec 8, 2016, 12:38 PM
Sravan Kumar Reddy DudyaluPosted Dec 7, 2016, 2:05 PM
Basavakumar MudurPosted Dec 7, 2016, 1:09 PM
Sravan Kumar Reddy DudyaluPosted Dec 7, 2016, 11:15 AM