Angular5: batch calls to get data for a filed in a json array
问题 I have an array with json data in the below format staff = [ { "id" : 1, "name" : "Robert" }, { "id" : 2, "name" : "Peter" } ] I am trying to get the designation of these people. There is an API which accepts group of ids. I am trying to get designations in batches of 30. i.e send first 30 objects and get their designations and go on.. I tried keeping a for loop and pass 30 objects but unsuccessful. Designation API gives data in the below format. [ { "staffId": "26", "designation": "PRA" }, {