Angularjs Http进程函数?

Angularjs Http进程函数?,angularjs,http,progress,Angularjs,Http,Progress,我想在它成功或出错之前显示一些东西,所以我不确定.progress部分,我只是将它作为一个示例插入其中,让您想象我的问题。。可能吗?有内置的功能吗 顺便说一句,我是新来的。TIA:)根据我在github上找到的一些帖子(参见2014年4月26日的帖子),你应该可以这样做: $http({ url: Config.ApiURL + "/site/go", method: "POST", headers: {'Content-Type': 'application/x-www-form-

我想在它成功或出错之前显示一些东西,所以我不确定
.progress
部分,我只是将它作为一个示例插入其中,让您想象我的问题。。可能吗?有内置的功能吗


顺便说一句,我是新来的。TIA:)

根据我在github上找到的一些帖子(参见2014年4月26日的帖子),你应该可以这样做:

$http({
  url: Config.ApiURL + "/site/go",
  method: "POST",
  headers: {'Content-Type': 'application/x-www-form-urlencoded'},
  data: $.param(testimony)
}).progress(function (data, status, headers, config) { //Not sure about this line
  console.log('progressing');
}).success(function (data, status, headers, config) {
    console.log('success');
});
}))


其中,
tarckProgress
将是一个回调,用于调用以处理进度状态。

根据我在github上找到的一些帖子(参见2014年4月26日的帖子),您应该可以这样做:

$http({
  url: Config.ApiURL + "/site/go",
  method: "POST",
  headers: {'Content-Type': 'application/x-www-form-urlencoded'},
  data: $.param(testimony)
}).progress(function (data, status, headers, config) { //Not sure about this line
  console.log('progressing');
}).success(function (data, status, headers, config) {
    console.log('success');
});
}))


其中,
tarckProgress
将是一个回调,用于调用以处理进度状态。

如果要显示进度微调器/条,除此之外,如果要显示其他内容,如果要显示进度微调器/条,还可以使用

,如果要显示其他内容,如果需要指令,可以使用

。已经有帖子了,所以:你需要一个指令。现在已经有一个post-an-SO:我知道
then
函数的第三个参数是notify回调。这可以连接到XHR progress update中。我知道
then
函数的第三个参数是notify回调。这可以连接到XHR进度更新中