I am working on an Angular application that has lazy loading implemented. I tried experimenting with lazy loading but decided that I do not yet want to implement it in my ap
Add HqModule
to your AppModule's import array and remove HqModule entry from the AppModule routing definition. Like this:
@NgModule({
declarations: [
AppComponent,
],
imports: [
BrowserModule,
HqModule, // add it
RouterModule.forRoot([
{ path: '', redirectTo: 'store', pathMatch: 'full'},
{ path: 'store', loadChildren: 'app/store/store.module#StoreModule', pathMatch: 'prefix'}
])
],
bootstrap: [AppComponent],
exports: [RouterModule],
})
export class AppModule { }