title: Angular Cannot reattach ActivatedRouteSnapshot with a different number of children
body: <p>Here is my routing in a nativescript-angular project:</p>
  
  <pre class="lang-js prettyprint-override"><code>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
      })],
      exports: [NativeScriptRouterModule]
  })
  </code></pre>
  
  <p>The scenario which leads to the error: First the app starts with tabs route, then I go to the login page, after that I go to register and then again I go to tabs page (and clean the history). After that if I go to login page again and get back to previous one (tabs page), the error occurs.</p>
  
  <p>The error:</p>
  
  <pre><code>JS: Error: Cannot reattach ActivatedRouteSnapshot with a different number of children
  JS:     at setFutureSnapshotsOfActivatedRoutes (file:///data/data/org.nativescript.tns57/files/app/tns_modules/@angular/router/bundles/router.umd.js:1950:19) [angular]
  JS:     at setFutureSnapshotsOfActivatedRoutes (file:///data/data/org.nativescript.tns57/files/app/tns_modules/@angular/router/bundles/router.umd.js:1954:13) [angular]
  JS:     at createNode (file:///data/data/org.nativescript.tns57/files/app/tns_modules/@angular/router/bundles/router.umd.js:1935:17) [angular]
  JS:     at file:///data/data/org.nativescript.tns57/files/app/tns_modules/@angular/router/bundles/router.umd.js:1975:20 [angular]
  JS:     at Array.map (&lt;anonymous&gt;) [angular]
  JS:     at createOrReuseChildren (file:///data/data/org.nativescript.tns57/files/app/tns_modules/@angular/router/bundles/router.umd.js:1958:30) [angular]
  JS:     at createNode (file:///data/data/org...
  </code></pre>
  
  <p>Any idea?</p>