Hi there,
Could you tell me, this logic looks ok? Maybe there are some other methods
of implementing recursion of arrays
cellItem could be [ [ [ [ ] ] ] ]
<tr ng-repeat="row in collection track by $index">
<td
ng-repeat="(key, val) in keyMap"
ng-init="cellItem = row[key]"
ng-include="'cell.html'">
</td>
</tr>
cell.html ->
<div ng-if="!_.isString(cellItem) && !_.isArray(cellItem) &&
!_.isPlainObject(cellItem)">
<span>{{cellItem}}</span>
</div>
<div
ng-if="_.isArray(cellItem)"
ng-repeat="cell in cellItem"
ng-init="cellItem = cell"
ng-include="'cell.html'">
</div>
I doubt in this part
ng-repeat="cell in cellItem"
ng-init="cellItem = cell"
ng-include="'cell.html'"
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.