ng-repeat functioning