angular ngrx

routing: 

Route can loadChildren:loadChildrenCallback; path; pathMatcher;

NgModuleFactory

{
    path: 'list',
    loadChildren: () => import("./list/list.module").then(mod => mod.ListModule)
  }
{
  path: 'list',
  loadChildren: () => of() //? observable<Type> callback
}
 
ng g m detail --routing
ng g c detail

猜你喜欢

转载自www.cnblogs.com/connie313/p/12232572.html