I want to iterate through $scope variables with a for loop like this. In this example the $scope object includes an object accounts inlcuding 5 objects, whose name
Angular way to do above is
$scope.accounts=[{name:"123"},{name:"124"},{name:"125"}] angular.forEach($scope.accounts,function(value,index){ alert(value.name); })