From c6123f93d725b7fc4d398e3bcf0daf23f49ac408 Mon Sep 17 00:00:00 2001 From: nikiquickie Date: Thu, 5 Dec 2024 17:44:41 +0200 Subject: [PATCH] updaet code --- src/app/app.module.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/app.module.ts b/src/app/app.module.ts index a439750..f4d046f 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -13,6 +13,7 @@ import { environment } from 'src/environments/environment'; import { AuthenticatedGuard } from './core/guards/authenticated.guard'; import { GuestGuard } from './core/guards/guest.guard'; import { AdminsGuard } from './core/guards/admins.guard'; +import { HashLocationStrategy, LocationStrategy } from '@angular/common'; const routes: Routes = [ { @@ -308,7 +309,7 @@ const routes: Routes = [ preloadingStrategy: PreloadAllModules }) ], - providers: [AuthenticatedGuard, GuestGuard, AdminsGuard], + providers: [AuthenticatedGuard, GuestGuard, AdminsGuard, { provide: LocationStrategy, useClass: HashLocationStrategy },], bootstrap: [AppComponent] }) export class AppModule {}