I am looking into performance improvements for a large table I am rendering and have come across angular-ui-scroll which I would like to try out.
In my table I am using the key\value accessor on my ng-repeat, e.g:
<tr ng-repeat="(key, value) in vm.stopTimes track by key">
<td class="timetable-detail-stop" layout="row" flex layout-align="start center">
{{ vm.expandedTimetable.stops[key].name }}
</td>
<td ng-repeat="departure in value.times track by $index">
{{departure.time}}
</td>
</tr>
Can I use the supported key\value syntax from ng-repeat with ui-scroll? I'm not so sure I can having read through the docs.
Has anyone done this using keyed objects\dictionaries?
Thanks
If we are talking about table rows virtualizing, then it may look like
Where the
datasourceis an object withgetmethod which returns (viasuccesscallback) an array of items based onindexandcountparams:Here I assume that we can get
stopTimeskey by index... The simplest implementation ofgetStopTimeKeyByIndexmethod may be