Skip to content

Commit

Permalink
feat: definido para utilizar hash location na navegação
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardoSemiOficial committed Sep 21, 2024
1 parent 2c99431 commit 8e7318d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions frontend/src/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
import { provideRouter, withComponentInputBinding } from '@angular/router';
import {
provideRouter,
withComponentInputBinding,
withHashLocation,
} from '@angular/router';

import { provideHttpClient, withInterceptors } from '@angular/common/http';
import { provideAnimations } from '@angular/platform-browser/animations';
Expand All @@ -10,7 +14,7 @@ import { routes } from './app.routes';
export const appConfig: ApplicationConfig = {
providers: [
provideZoneChangeDetection({ eventCoalescing: true }),
provideRouter(routes, withComponentInputBinding()),
provideRouter(routes, withComponentInputBinding(), withHashLocation()),
provideAnimations(),
provideHttpClient(withInterceptors([authenticationInterceptor])),
MessageService,
Expand Down

0 comments on commit 8e7318d

Please sign in to comment.