How to create a Component in Angular CLI for a specific Module? Lazy Loading in Angular 8+

ng g module [module name] — route [routing path name]— module app.module

ng g module application — route application — module app.module

ng generate component [component name] — module [module folder name]/[module name].module

const routes: Routes = [{path: ‘’, component: ApplicationComponent,children: [{ path: ‘’, redirectTo: ‘manage-master’, pathMatch: ‘full’},{path: ‘manage-master’, component: ManageMasterComponent}]}];

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store