blob: fe96c99176235b7c64af7186dabc816e486554c3 [file] [log] [blame]
Matteo Scandolofc4b37b2017-02-02 12:18:47 -08001export default routesConfig;
2
3function 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}