blob: 665aafeabb0c900dc4159e263786f1b605afe18c [file] [log] [blame]
Matteo Scandolo46b56102015-12-16 14:23:08 -08001'use strict';
2
3angular.module('autoscaling', [
4 'ngLodash',
5 'ui.router',
6 'ngAnimate',
7 'chart.js'
8])
Matteo Scandolo8942e042015-12-16 14:41:21 -08009.run((Autoscaling) => {
10 // start polling data
11 Autoscaling.getAutoscalingData();
Matteo Scandolo46b56102015-12-16 14:23:08 -080012})
13.config(($stateProvider, $urlRouterProvider) => {
14 $stateProvider
15 .state('ceilometerDashboard', {
16 url: '/',
17 template: '<service-container></service-container>'
18 });
Matteo Scandolo8942e042015-12-16 14:41:21 -080019
Matteo Scandolo46b56102015-12-16 14:23:08 -080020 $urlRouterProvider.otherwise('/');
21});