problem description
A project built by someone else"s angular1 uses angular-ui-router to create a route, and it is found that only $http.get requests are sent in Google browser in UAT and production environment. SetURL is not defined (occasional). This is the underlying error report of jQuery. This function is related to eval-related, globalEval ()
.related codes
angular.module ("app")
.run (
[ "$rootScope", "$state", "$stateParams",
function ($rootScope, $state, $stateParams) {
$rootScope.$state = $state;
$rootScope.$stateParams = $stateParams;
}
]
)
.config (["$stateProvider","$urlRouterProvider",
function ($stateProvider, $urlRouterProvider) {
$urlRouterProvider
.otherwise("/app/index");
$stateProvider
.state("app.a", {
url: "/a",
template: "<div ui-view class="fade-in-right-big smooth"></div>"
})
.state("app.a.a-1", {
url: "/a-1",
templateUrl: "tpl/a/a-1.html",
resolve: {
deps: ["uiLoad",
function( uiLoad){
return uiLoad.load(["js/controllers/a/a-1.js",
"vendor/smarttable/smart-table.css"]);
}]
}
});
}
]
)