Replace hashLocationStrategy with pathLocationStrategy
This commit is contained in:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user