Matteo Scandolo | e19fa10 | 2017-03-09 15:38:59 -0800 | [diff] [blame] | 1 | export default routesConfig; |
2 | |||||
3 | function routesConfig($stateProvider: angular.ui.IStateProvider, $locationProvider: angular.ILocationProvider) { | ||||
4 | $locationProvider.html5Mode(false).hashPrefix(''); | ||||
5 | |||||
6 | $stateProvider | ||||
7 | .state('xos.vtr', { | ||||
8 | abstract: true, | ||||
9 | template: '<div ui-view></div>' | ||||
10 | }) | ||||
11 | .state('xos.vtr.dashboard', { | ||||
12 | url: 'vtr/dashboard', | ||||
13 | parent: 'xos.vtr', | ||||
14 | component: 'xosVtrDashboardComponent' | ||||
15 | }); | ||||
16 | } |