(function() {
  "use strict";

  module.exports = function($routeProvider/*, $locationProvider*/) {
    // $locationProvider.html5Mode(true);
    $routeProvider.otherwise({
      templateUrl: "404.html",
      controller: "notfoundController"
    });

  };

})();

(function() {
  "use strict";

  module.exports = function($routeProvider, $locationProvider) {
    $locationProvider.html5Mode(true);
    $routeProvider.otherwise({
      templateUrl: "404.html",
      controller: "notfoundController"
    });

  };

})();

Enable Angular html5Mode