From dd9ff4a4adf9b67e485005d2f3de369cf1cb2a11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Wed, 17 Jan 2024 13:29:44 +0300 Subject: [PATCH] Replace hashLocationStrategy with pathLocationStrategy --- src/app/app.module.ts | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 3fab8fa..fb8d368 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -1,5 +1,5 @@ import { NgModule } from '@angular/core'; -import { HashLocationStrategy, LocationStrategy } from '@angular/common'; +import { PathLocationStrategy, LocationStrategy } from '@angular/common'; import { AppComponent } from './app.component'; import { AppRoutingModule } from './app-routing.module'; import { AppLayoutModule } from './layout/app.layout.module'; @@ -13,18 +13,18 @@ import { NodeService } from './demo/service/node.service'; import { PhotoService } from './demo/service/photo.service'; @NgModule({ - declarations: [ - AppComponent, NotfoundComponent - ], - imports: [ - AppRoutingModule, - AppLayoutModule - ], + declarations: [AppComponent, NotfoundComponent], + imports: [AppRoutingModule, AppLayoutModule], providers: [ - { provide: LocationStrategy, useClass: HashLocationStrategy }, - CountryService, CustomerService, EventService, IconService, NodeService, - PhotoService, ProductService + { provide: LocationStrategy, useClass: PathLocationStrategy }, + CountryService, + CustomerService, + EventService, + IconService, + NodeService, + PhotoService, + ProductService, ], - bootstrap: [AppComponent] + bootstrap: [AppComponent], }) -export class AppModule { } +export class AppModule {}