fixed errors I think with repeat in ng-repeat