Angular Cannot reattach ActivatedRouteSnapshot with a different number of children
问题 Here is my routing in a nativescript-angular project: const routes: Routes = [ { path: "", redirectTo: "/tabs/default", pathMatch: "full" }, { path: "tabs", loadChildren: "~/app/modules/tabs/tabs.module#TabsModule" }, { path: "login", loadChildren: "~/app/modules/login/login.module#LoginModule" }, { path: "register", loadChildren: "~/app/modules/register/register.module#RegisterModule" } ]; @NgModule({ imports: [NativeScriptRouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules