implemented part of ng-repeat