I\'m trying to create an application with hash location strategy, but it does not add the hash to the url. For instance when I click on a button associated with { path: \'/p
It is recommended to use the HTML 5 style (PathLocationStrategy) as location strategy in Angular
Because
Use Hashlocationstrtegy only if you have to support the older browsers.
Click Here for More info