Matteo Scandolo | fc4b37b | 2017-02-02 12:18:47 -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.xos-sample-gui-extension', { |
| 8 | url: 'xos-sample-gui-extension', |
| 9 | abstract: true, |
| 10 | template: '<div ui-view></div>' |
| 11 | }) |
| 12 | .state('xos.xos-sample-gui-extension.example-route', { |
| 13 | url: '/example-route', |
| 14 | parent: 'xos.xos-sample-gui-extension', |
| 15 | component: 'demo' |
| 16 | }); |
| 17 | } |