Updated detection of ng-repeat attribute