I have problems with foreach, what I need to do with Angular.
Here is what I want to do:
<ul>
<div ng-repeat="g in groups">
<li ng-repeat="c in g.commands">{{c.text}}</li>
<li class="divider"></li>
</div>
</ul>
How can I do something similar, but in the correct HTML structure? (without <div>between <ul>and <li>)
I see only one solution:
- Replace
<div>with <ul>and make many css rules to make it the way it does not exist.
In addition, I am using Angular 1.4.8.
Thanks!
source
share