'use strict'; | |
angular.module('autoscaling', [ | |
'ngLodash', | |
'ui.router', | |
'ngAnimate', | |
'chart.js' | |
]) | |
.run((Autoscaling) => { | |
// start polling data | |
Autoscaling.getAutoscalingData(); | |
}) | |
.config(($stateProvider, $urlRouterProvider) => { | |
$stateProvider | |
.state('ceilometerDashboard', { | |
url: '/', | |
template: '<service-container></service-container>' | |
}); | |
$urlRouterProvider.otherwise('/'); | |
}); |