请帮助我为什么我在执行基于身份验证的路由时无法ping通我的网址
$stateProvider
.state('home', {
url: "/Enquiry/home",
title: "Home Page",
resolve: {
data: function (dbService) {
return dbService.getData();
}
}
这是MyServices
app.service('dbService', function (IndexFac) {
return {
getData: function ($q, $http) { $http.get('http://localhost:4200/api/data/ValidateSesion').success(function (data) {
defer.resolve(data);
});
return;
}
};
});