1let array = [1,2,3];
2for (let i = 0; i < array.length; i++) {
3 console.log(array[i]);
4}
1$scope.content = {};
2$scope.content.codehttp = [200, 200, 200, 201];
3
4angular.forEach($scope.content.codehttp, function(value, key) {
5 if (value != 200) {
6 $scope.flag_a = 'bad';
7 }
8})//this is awsome