I assume this is happening because hashprefix not installed.
$locationProvider .hashPrefix('!');
I think you can set it to an empty string, and therefore you do not see ! .
Alternatively, you can fully enable html5mode that will get rid of hashbang`. Some older browsers do not support it, but usually this is not a problem unless you need IE9 support or something like that.
You can read about it, for example. here or here .
In short, if you configure html5mode , then you will not have the hashbang that is required for routing in older browsers that do not support it.
source share