bansho/app/app.js
2015-02-10 12:22:28 -05:00

30 lines
706 B
JavaScript

'use strict';
angular.element(document).ready(function () {
$.get('components/config/config.json', function (data) {
angular.module('adagios.config').config(['readConfigProvider', function (readConfigProvider) {
readConfigProvider.loadJSON(data);
}]);
angular.bootstrap(document, ['adagios']);
}, "json");
});
angular.module('adagios', [
'ngRoute',
'adagios.sidebar',
'adagios.topbar',
'adagios.config',
'adagios.view.dashboard',
'adagios.view.hosts',
'adagios.view.services',
'adagios.view.custom'
])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider.otherwise({redirectTo: '/'});
}]);