for loop get property array angular code example
Example 1: 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
Example 2: angular how to iterate object
keys() : Array<string> {
return Object.keys(this.myDict);
}