application.js 949 Bytes
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);
            };

    }]);



    //以下可以针对整体应用做全局设置
};