TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Basavakumar Mudur
NA
19
866
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();
}
}
Reply
Answers (
10
)
What is the difference between Angular.js & KendoUI ?
Rendering the Partial View inside the div using Angular Js