2015-02-27 14:20:01 +00:00
|
|
|
'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' });
|
2015-03-09 19:31:31 +00:00
|
|
|
// base kills svg url property + more (but kills ie9 support)
|
|
|
|
$locationProvider.html5Mode({enabled: true, requireBase: false});
|
2015-02-27 14:20:01 +00:00
|
|
|
}]);
|
|
|
|
|