$locationProvider.html5Mode(true)
works fine when i ran serve
using grunt
.
but doesn't work with grunt build
and show error in console
unexpected syntax error <
if you are deploying on sub-domians like www.test.com/test so you have to mention /test on base tag
thats it!