소스 검색

added routerConfig for sameUrlNavigation

tigger 1 년 전
부모
커밋
0e7c89fda9
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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()
   ]
 };