I try to create a table like Full Tilt Payout Structure. I decided to create the next map:
$scope.payoutStructure = {
'2-4': {
1: 100,
2: 0,
3: 0,
4: 0,
5: 0,
6: 0,
},
'6-7': {
1: 65,
2: 35,
3: 0,
4: 0,
5: 0,
6: 0,
}
}
and so on...
But I can't figure out how to render it. If i'm not mistaken, at first I have to render headers like that:
<thead>
<tr>
<th><strong>Position \ Entries</strong></th>
<th ng-repeat="key in payoutStructure.keys()">{{key}}</th> //I'm not sure about .keys(), because they are not render in order as I know
</tr>
</thead>
But I can't get how to render tbody. It seems like I have to use an array instead of a map but I want to get value by keys like:
{{payoutStructure[entries]['1']}}