Js Loop inside has requested service. How can I get the corresponding sequential value in success inside?

  node.js, question

$http is a module of angularjs.
Apart from synchronization, is there any other way to do this? Because the synchronization effect is too slow.
All printed in console.log are 10. how can it print 0, 1, 2, 3, 4, 5 … and so on

for(var i=0;   i<10;  I plus)
 $http({
 url : "data.json",
 method : "GET"
 }).success(function(data){
 console.log(i)
 },function(error){
 })
 bracket

If you can search it first. . .