0
ang1のHTTP要求の完了を検出する可能性はありますか?ang1のHTTP要求の完了を検出する方法
製品の工場:
app
.factory('productFactory', ['$http','config',
function($http,config) {
var url = config.domainBase +':'+config.domainPort +config.additionalPath+'/Product/All'
return {
getAll: function() {
return $http.get(url);
}
};
}
]);
プロダクトコントローラー:
var req = productFactory.getAllServers();
req.success(function(response) {
//....
}).
error(function(error){
//error
});