replacing query with ng-repeat