1

I am working on a project where i would like to combine two ng-repeat toghether, has anyone an idea as to how to do this?

Something like this:

<th ng-repeat="header in headers"> <ul class="dropdown-menu" aria-labelledby="dropdownMenu"> <li class="divider"></li> <li ng-repeat="row in rows"> **{{row.{{header.data}}}**} //what is the right syntax </li> </ul> </th> 
1
  • <th ng-repeat="header in headers"> is the top Commented Sep 23, 2014 at 7:51

1 Answer 1

1

This should work:

<th ng-repeat="header in headers"> <ul class="dropdown-menu" aria-labelledby="dropdownMenu"> <li class="divider"></li> <li ng-repeat="row in rows"> {{row[header.data]}} </li> </ul> </th> 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.