Can I reclaim control of the URL hash-fragment from AngularJS? Can I reclaim control of the URL hash-fragment from AngularJS? angularjs angularjs

Can I reclaim control of the URL hash-fragment from AngularJS?


# seems to work well enough on the angular api docs page. So with a little snooping and testing I found that

app.config(function($locationProvider) {    $locationProvider.html5Mode(true).hashPrefix('!');});

makes the difference.