Why is it necessary to use moduleId:module.id
at the time of using templateUrl
in Angular 2
Component .
import { Component } from '@angular/core';
@Component({
moduleId:module.id,
selector: 'my-app',
templateUrl:`app.component.html`,
})
export class AppComponent { name = 'Angular 2 website'; }