If this is an array you should use the form "for (var i = 0, ii = $scope.app.application.sources.reads.length; i < ii; i += 1)| because of reasons: http://stackoverflow.com/a/500531