diff --git a/src/app/app.config.ts b/src/app/app.config.ts index 089c262..28d0b57 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -1,5 +1,5 @@ import {ApplicationConfig, provideZoneChangeDetection} from '@angular/core'; -import {provideRouter, withComponentInputBinding} from '@angular/router'; +import {provideRouter, withComponentInputBinding, withHashLocation} from '@angular/router'; import {routes} from './app.routes'; import {provideClientHydration} from '@angular/platform-browser'; @@ -9,7 +9,7 @@ import {provideHttpClient, withFetch} from '@angular/common/http'; export const appConfig: ApplicationConfig = { providers: [ provideZoneChangeDetection({eventCoalescing: true}), - provideRouter(routes, withComponentInputBinding()), + provideRouter(routes, withComponentInputBinding(), withHashLocation()), provideClientHydration(), provideAnimationsAsync(), provideHttpClient(