Wednesday, August 22, 2018

PathLocationStrategy and HashLocationStrategy are rivals.

The former is the default way of doing URL routing midstream into a SPA (single page application) in Angular 5 which is not supported by all browsers and the later is the trick in which a hashtag is introduced at the URL line quickly after the domain name and only the stuff after the pound sign changes around allowing support for all browsers. You have to explicitly turn the trick with the numbers symbol on. Both things have been mentioned at this blog before but page 135 of "ASP.NET Core 2 and Angular 5" by Valerio De Sanctis explicitly juxtaposes the two so I will mention it here.

No comments:

Post a Comment