Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

angular loop through array

$scope.content = {};
$scope.content.codehttp = [200, 200, 200, 201];

angular.forEach($scope.content.codehttp, function(value, key) {
  if (value != 200) {
    $scope.flag_a = 'bad';
  }
})//this is awsome
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #angular #loop #array
ADD COMMENT
Topic
Name
8+6 =