application.js
949 Bytes
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
39
40
41
var initApp = function () {
"use strict";
var ref = [
"xn.filter.common",
"xn.directive.common",
"xn.service.common",
"xn.interceptor.common",
"xn.controller.common",
"xn.service.system",
"xn.service.foundation",
"ui.bootstrap"
];
angular.module("xn", ref)
.config(["$httpProvider", function ($httpProvider) {
$httpProvider.interceptors.push("httpInterceptor");
}])
.config(["xnValidatorProvider", function (xnValidatorProvider) {
// 全局配置
xnValidatorProvider.config({
blurTrig : false,
showError : false,
removeError: false
});
}])
.controller("BodyController",["$scope",function($scope){
$scope.closeAlert = function (index,form) {
form.splice(index,1);
};
}]);
//以下可以针对整体应用做全局设置
};