'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' }); $locationProvider.html5Mode(true); }]);