I'm just starting out with Angular myself, but I think you want to install the $location hashPrefix service.
See the developer guide at $ location service .
As you can see from the example, you would do something line by line:
// Not 100% sure this is right $locationProvider.hashPrefix('!');
There is also a more automated way to do this, described in the “Crawl your application” section near the bottom of the same documentation page.
source share