blob: 451df668e85c9ba92a85e6033f9117546b285a2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/**
* 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'
});
}]);
|