How to remove # from URL? #55
-
|
Hello, We have purchased the Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Hi @monu, you have to change the Angular {provide: LocationStrategy, useClass: HashLocationStrategy},to {provide: LocationStrategy, useClass: PathLocationStrategy},and change the import import {HashLocationStrategy, LocationStrategy} from '@angular/common';to import {LocationStrategy, PathLocationStrategy} from '@angular/common';I hope this helps 👌 The |
Beta Was this translation helpful? Give feedback.
-
|
The PrimeNG website uses |
Beta Was this translation helpful? Give feedback.
Hi @monu,
you have to change the Angular
LocationStrategyin filesrc/app/app.module.ts#L275(mirage-ng@16.0.0) fromto
and change the import
src/app/app.module.ts#6fromto
I hope this helps 👌
The
PathLocationStrategyis the default in Angular, maybe the PrimeNG premium templates should change to that and also move to standalone components @cagataycivicihttps://angular.io/guide/router#locationstrategy-and-brow…