PathLocationStrategy vs HashLocationStrategy in web apps

For me the main difference is that the PathLocationStrategy requires a configuration on the server side to all the paths configured in @RouteConfig to be redirected to the main HTML page of your Angular2 application. Otherwise you will have some 404 errors when trying to reload your application in the browser or try to access … Read more

URL hash-bang (#!/) prefix instead of simple hash (#/) in Angular 1.6

It is new from AngularJS 1.6, which added a new hash prefix. Due to aa077e8, the default hash-prefix used for $location hash-bang URLs has changed from the empty string (”) to the bang (‘!’). If your application does not use HTML5 mode or is being run on browsers that do not support HTML5 mode, and … Read more

What’s the shebang/hashbang (#!) in Facebook and new Twitter URLs for?

This technique is now deprecated. This used to tell Google how to index the page. https://developers.google.com/webmasters/ajax-crawling/ This technique has mostly been supplanted by the ability to use the JavaScript History API that was introduced alongside HTML5. For a URL like www.example.com/ajax.html#!key=value, Google will check the URL www.example.com/ajax.html?_escaped_fragment_=key=value to fetch a non-AJAX version of the contents.