title: constructor or ngoninit is not calling when used router.navigate in ionic 4 with angular
body: <p>i am using ionic 4 with angular
  i am navigating from home page to login when login status is false</p>
  
  <pre><code>this.router.navigateByUrl('/login');
  </code></pre>
  
  <p>and also from login page to home page after login</p>
  
  <pre><code>this.router.navigateByUrl('/home');
  </code></pre>
  
  <p>my router modile is</p>
  
  <p>import { NgModule } from '@angular/core';
      import { PreloadAllModules, RouterModule, Routes } from '@angular/router';</p>
  
  <pre><code>const routes: Routes = [
    {
  path: '',
  redirectTo: 'home',
  pathMatch: 'full'
  },
  {
  path: 'home',
  loadChildren: () =&gt; import('./home/home.module').then(m =&gt; m.HomePageModule)
  },
  {
  path: 'list',
  loadChildren: () =&gt; import('./list/list.module').then(m =&gt; m.ListPageModule)
  },
  { path: 'acceptordermodalpage', loadChildren: './acceptordermodalpage/acceptordermodalpage.module#AcceptordermodalpagePageModule'},
  { path: 'newordermodalpage', loadChildren: './newordermodalpage/newordermodalpage.module#NewordermodalpagePageModule' },
  { path: 'rejectordermodalpage', loadChildren: './rejectordermodalpage/rejectordermodalpage.module#RejectordermodalpagePageModule' },
  { path: 'orderdetailsmodalpage', loadChildren: './orderdetailsmodalpage/orderdetailsmodalpage.module#OrderdetailsmodalpagePageModule' },
  { path: 'login', loadChildren: './login/login.module#LoginPageModule' }
  ];
  
  @NgModule({
  imports: [
  RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
  })
  export class AppRoutingModule {}
  </code></pre>
  
  <p>now the problem is when i navigate from one page/component to another page/component the ngoninit or the constructor of destination page/component doesn't fire</p>
  
  <p>but when i navigate using routerlink it works</p>
  
  <pre><code>[routerLink]="[p.url]"
  </code></pre>
  
  <p>i found some suggestion in online searching and i applied them</p>
  
  <p>in router module in changed to</p>
  
  <pre><code>imports: [
  RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules, onSameUrlNavigation: 'reload' })
  ],
  </code></pre>
  
  <p>i put following into both source and destination page/component constructor/ngoninit</p>
  
  <pre><code>this.router.routeReuseStrategy.shouldReuseRoute = () =&gt; {
    return false;
  };
  </code></pre>
  
  <p>also i applied NgZone</p>
  
  <pre><code>this.ngZone.run(() =&gt; {
      this.router.navigateByUrl('/login');
    });
  </code></pre>
  
  <p>but nothing seems work to fire ngoninit or constructor after using router.navigateByUrl()</p>
  
  <p>can anyone please help.</p>