Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $scope.getPods = function() {
- if ($scope.customers) {
- console.log("Getting pods");
- for (i=0; i<$scope.customers.length; i++) {
- // FIXME: Check status first
- $http.get("/lists/pods/"+$scope.customers[i]["shortname"]+"/ms").then(function(response){
- console.log("Got back " + response.data.length + " pods");
- });
- }
- }
- };
- If I want that console.log to be
- "Got back " + response.data.length + " pods for customer " + $scope.customers[i]["shortname"]
- how can I do that?
Advertisement
Add Comment
Please, Sign In to add comment