Replace hashLocationStrategy with pathLocationStrategy
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { HashLocationStrategy, LocationStrategy } from '@angular/common';
|
import { PathLocationStrategy, LocationStrategy } from '@angular/common';
|
||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
import { AppRoutingModule } from './app-routing.module';
|
import { AppRoutingModule } from './app-routing.module';
|
||||||
import { AppLayoutModule } from './layout/app.layout.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';
|
import { PhotoService } from './demo/service/photo.service';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [AppComponent, NotfoundComponent],
|
||||||
AppComponent, NotfoundComponent
|
imports: [AppRoutingModule, AppLayoutModule],
|
||||||
],
|
|
||||||
imports: [
|
|
||||||
AppRoutingModule,
|
|
||||||
AppLayoutModule
|
|
||||||
],
|
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: LocationStrategy, useClass: HashLocationStrategy },
|
{ provide: LocationStrategy, useClass: PathLocationStrategy },
|
||||||
CountryService, CustomerService, EventService, IconService, NodeService,
|
CountryService,
|
||||||
PhotoService, ProductService
|
CustomerService,
|
||||||
|
EventService,
|
||||||
|
IconService,
|
||||||
|
NodeService,
|
||||||
|
PhotoService,
|
||||||
|
ProductService,
|
||||||
],
|
],
|
||||||
bootstrap: [AppComponent]
|
bootstrap: [AppComponent],
|
||||||
})
|
})
|
||||||
export class AppModule {}
|
export class AppModule {}
|
||||||
|
|||||||
Reference in New Issue
Block a user