Can someone help me understand how to utilize item
from ng-repeat
within the same tag where I am declaring ng-repeat
?
In a hypothetical template language, this is what I want:
{% for item in items %}
<li data-theme="{{ item.dataTheme }}">{{ item.name }}</li>
{% endfor %}
When using Angular, I'm unsure how to access item.dataTheme
.
<li data-theme="{{ item.dataTheme }}" ng-repeat="item in items">{{ item.name }}</li>