[英]$http async in angularjs using GET
$scope.loader = true;
$http({
url: "http://www.corsproxy.com/something.php",
method: "GET",
}).success(function(data) {
$scope.data = data;
$scope.loader = false;
});
How to make my request async? 如何使我的请求异步? My css loader didn't show up, so I suspect it's the async issue.
我的CSS加载程序未显示,因此我怀疑是异步问题。
You request is already async. 您的请求已异步。
Can't you show your HTML and give an example of the data you're waiting for? 您不能显示HTML并给出您正在等待的数据的示例吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.