Angular, Tutorial, Coding, JavaScript, Technology.
'./about/about.component'; @NgModule({ imports: [ RouterModule.forChild([ { path: 'home', component: HomeComponent }, { path: 'about', component: AboutComponent } ]) ], exports: [RouterModule] }) export class AppRoutingModule { } By splitting your code, you can reduce the initial bundle size,