Page 1 of 1

remove the # symbol from URLs

Posted: 26 Feb 2019, 20:47
by fsantosmg
Is it possible to remove the # symbol from URLs?

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

Re: remove the # symbol from URLs

Posted: 26 Feb 2019, 21:46
by fsantosmg
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
],