'use strict'; var pageRouteInit = []; angular.module('exampleUI', ['ngRoute']). config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) { for (var i = 0; i < pageRouteInit.length; i++) { pageRouteInit[i]($routeProvider, $locationProvider); } $routeProvider.otherwise({ redirectTo: '/example-ui' }); // base kills svg url property + more (but kills ie9 support) $locationProvider.html5Mode({enabled: true, requireBase: false}); }]);