remove the # symbol from URLs

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 0 guests