I in JS is almost a complete zero but got someone else's code and have to be picked. Faced with a strange behaviour (in my opinion this is a bug).
In the controller do
$scope.item = $scope.arrayFirst[i]
further code -
And so 20 iterations. So, in any conditions that I can't keep track of when Pushe one item in the array disappears o_0 , that is, its length becomes one less. The problem is decided so:
$scope.item = angular.copy($scope.arrayFirst[i])
- seems to work fine.
What could it be? Can angular somehow without my knowledge to filter this array?