I am trying to do lazy loading angular2 module using router as shown in hero tutorial. In my network tab i can see the the files are getting downloaded in my browser but the component is not showing in my browser
//module
@NgModule({
declarations: [
CustomerDashboardComponent
],
exports: [
CustomerDashboardComponent
]
})
export class CustomerDashboardModule {
}
//component code
@Component({
selector: 'customer-dashboard',
templateUrl: 'customer-dashboard/customer-dashboard.html',
})
export class CustomerDashboardComponent extends OnInit{
constructor(private router: Router,
private homeService: HomeService,
private restService: RestService
) {
}
}