How to lazy load module after api response in angular?
I want to lazy load a module after API response below are my routes const routes: Routes = [ { path: "", component: LandingComponent }, { path: 'student', loadChildren: () => import('./student.module').then(m => m.StudentModule) }, { path: 'school', loadChildren: ()…