istic-openstack/client/js/app.js
manzerbredes bd81674a85 Add doc
2016-02-06 12:10:04 +01:00

26 lines
646 B
JavaScript

/**
* The main app module instance
* @type angular.module.angular-1_3_6_L1749.moduleInstance
*/
var mainApp=angular.module("mainApp",['ngRoute', 'ngSanitize']);
/**
* Configure the router
*/
mainApp.config(['$routeProvider', function($routeProvider){
$routeProvider.
when('/home',{
templateUrl: 'partials/home/main.html',
controller: 'homeCtrl'
}).
when('/network',{
templateUrl: 'partials/network/main.html',
controller: 'networkCtrl'
}).otherwise({
redirectTo: '/home'
});
}]);