using ng-repeat instead of dynamically generating content