I need help with a foreach loop in Angular that I am struggling with.
Here is what I am trying to achieve:
<ul>
<li ng-repeat="g in groups">
<li ng-repeat="c in g.commands">{{c.text}}</li>
<li class="divider"></li>
</li>
</ul>
Is there a way to accomplish this without using a <div>
between <ul>
and <li>
?
The only solution I can think of is:
- Replace the
<div>
with a<ul>
and use CSS rules to hide it
Just to add, I am working with Angular 1.4.8.
Thank you!