In the app's main module's config function, use the html5mode()
function of the $locationProvider
. Read these docs for more info: http://docs.angularjs.org/api/ng.$locationProvider and http://docs.angularjs.org/guide/dev_guide.services.$location.
Example:
angular.module('myApp', []).
config(function($locationProvider) {
$locationProvider.html5Mode(true);
});