Hi Ajay,

this code looks strange to me:

$scope.machines = []; var object1 = response.data; 
 $scope.machines.push(object1);

You machines array will only have 1 element in it. I suspect you want:

$scope.machines = response.data

Or perhaps even:

$scope.machines = JSON.parse(response.data)

at least log out the result, and inspect it in the console, so you know 
what you are dealing with.

Regards
Sander
​

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to