added support for ng-repeat