istic-openstack/client/js/app.js

27 lines
646 B
JavaScript
Raw Normal View History

2016-01-24 14:41:00 +01:00
2016-02-06 12:10:04 +01:00
/**
* The main app module instance
* @type angular.module.angular-1_3_6_L1749.moduleInstance
*/
var mainApp=angular.module("mainApp",['ngRoute', 'ngSanitize']);
2016-01-24 19:19:32 +01:00
2016-02-06 12:10:04 +01:00
/**
* Configure the router
*/
2016-01-24 19:19:32 +01:00
mainApp.config(['$routeProvider', function($routeProvider){
$routeProvider.
when('/home',{
2016-02-03 18:57:20 +01:00
templateUrl: 'partials/home/main.html',
2016-01-24 19:19:32 +01:00
controller: 'homeCtrl'
}).
when('/network',{
2016-02-03 18:57:20 +01:00
templateUrl: 'partials/network/main.html',
2016-01-24 19:19:32 +01:00
controller: 'networkCtrl'
}).otherwise({
redirectTo: '/home'
});
2016-02-05 19:35:38 +01:00
}]);