Could use `angular.forEach` here.