| angular.module('xos.ceilometerDashboard', [ |
| .config(($stateProvider, $urlRouterProvider) => { |
| .state('ceilometerDashboard', { |
| template: '<ceilometer-dashboard></ceilometer-dashboard>' |
| url: '/:name/:tenant/samples', |
| template: '<ceilometer-samples></ceilometer-samples>' |
| $urlRouterProvider.otherwise('/'); |
| .config(function($httpProvider){ |
| $httpProvider.interceptors.push('NoHyperlinks'); |
| .run(function($rootScope){ |
| $rootScope.stateName = 'ceilometerDashboard'; |
| $rootScope.$on('$stateChangeStart', (event, toState) => { |
| $rootScope.stateName = toState.name; |