Change implementation to avoid removing ng-repeat.