refactor(ng-repeat): refactor the fix for #1015