I want to run a counter on div-table-row
like 0, 1, 2, 3, 4, ..... and will be printed in div-table-cell-size
as marked below. How can I accomplish it?
I've seen these but I don't know know how to apply two ng-repeats:
- Angular ng-repeat element count
- Angular.js. How to count ng-repeat iterations which satisfy the custom filter
Note: I'm very very very new to Angular.
<div class="div-table-row" ng-repeat="(label_inx, label_key) in design.labels">
<div class="div-table-cell-label">
{{ label_key.name }}
</div>
<div class="div-table-cell-size">
<div ng-repeat="(size_inx, size_key) in design.sizes">
{{ size_key.name }}-{{ print_counter_here }}
</div>
</div>
</div>