Remove the Hash from Angularjs URLs

By default, Angularjs URLs have a hash in them, in the format of This can be pretty annoying to look at, but there is a way around this!

In your config file, use the $locationProvider and set HTML5 mode to true.

Then in your index.html page, set the base href to ‘/’.

Alternatively, you can pass an object into the $locationProvider.html5Mode function and make a base URL not required.

This will enable you to have normal looking URLs!

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.