remove the # symbol from URLs

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
fsantosmg
Posts: 6
Joined: 16 Oct 2015, 02:46

26 Feb 2019, 20:47

Is it possible to remove the # symbol from URLs?

ex:
http://localhost:4200/#/
to
http://localhost:4200/

fsantosmg
Posts: 6
Joined: 16 Oct 2015, 02:46

26 Feb 2019, 21:46

Sorry for the little research I found the solution.

in app.module.ts set useClass to PathLocationStrategy:

providers: [
{provide: LocationStrategy, useClass: PathLocationStrategy},
CarService, CountryService, EventService, NodeService
],

Post Reply

Return to “Atlantis - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests