blob: 1f889a080c5118c305fca7e25263339b6275a797 (
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
27
28
29
30
31
32
33
34
35
36
37
38
|
/**
* The main app module instance
* @type angular.module.angular-1_3_6_L1749.moduleInstance
*/
var mainApp=angular.module("mainApp",['ngRoute', 'ngSanitize', 'ngCookies','lr.upload']);
/**
* Configure routeProvider
*/
mainApp.config(['$routeProvider', function($routeProvider){
$routeProvider.
when('/home',{
templateUrl: 'partials/home/home.html'
//controller: 'homeCtrl'
}).
when('/network',{
templateUrl: 'partials/network/network.html'
//controller: 'networkCtrl'
}).
when('/image',{
templateUrl: 'partials/image/image.html'
//controller: 'imageCtrl'
})
.otherwise({
redirectTo: '/home'
});
}]);
/**
* Configure httpProvider
*/
mainApp.config(['$httpProvider', function($httpProvider){
$httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8';
}]);
|