Seven price
asked on
angularjs foreach
I only want to ge the first value only. either break the loop once the value is found or another way to retrieve the first value only.
.success(function (data, status, headers, config) {
$scope.myData = data;
angular.forEach($scope.myD ata, function (item) {
// $scope.mypage = item.GroupID
alert(item.GroupID);
return false;
})
.success(function (data, status, headers, config) {
$scope.myData = data;
angular.forEach($scope.myD
// $scope.mypage = item.GroupID
alert(item.GroupID);
return false;
})
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks