RouterModule.forRoot(
  routes,
  {
  enableTracing: true,
  preloadingStrategy: SelectivePreloadingStrategy,
  useHash: true
  }
 )

On page app/app-routing-moule.ts
Advertisements