Przeglądaj źródła

added routerConfig for sameUrlNavigation

tigger 1 rok temu
rodzic
commit
0e7c89fda9
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/app/app.config.ts

+ 2 - 2
src/app/app.config.ts

@@ -1,5 +1,5 @@
 import { ApplicationConfig, importProvidersFrom } from '@angular/core';
-import { provideRouter, withHashLocation } from '@angular/router';
+import { provideRouter, withHashLocation, withRouterConfig } from '@angular/router';
 import { routes } from './app.routes';
 import { provideHttpClient } from '@angular/common/http';
 import { BrowserModule } from '@angular/platform-browser';
@@ -17,7 +17,7 @@ export const appConfig: ApplicationConfig = {
     provideStore([],withNgxsStoragePlugin({keys:'*'}),withNgxsReduxDevtoolsPlugin()),
     importProvidersFrom(DpModule),
     importProvidersFrom(Angularlib),
-    provideRouter(routes,withHashLocation()),
+    provideRouter(routes,withHashLocation(),withRouterConfig({onSameUrlNavigation:'reload'})),
     provideHttpClient()
   ]
 };