This works for repeating when i specify reportItems.time or reportItems.human.
<div repeat.for="val of reportItems.time">
time ${val.timelineEntry.id}
</div>
Above works.
where analysisTypes is private analysisTypes = ["time", "motion", "human", "sensor"];
But this one does not work.
<div repeat.for="types of analysisTypes"> (analysisTypes is ["time", "motion", "human", "sensor"];)
${$index} ${types}
<div repeat.for="val of reportItems.$types">
${val} - ${val.timelineEntry.id} <br>
</div>
</div>
Any idea how to apply repeat.for in dictionary reportItems above. reportItems is of type
@bindable
private reportItems: { [analysisType in TimelineEntryType]: ReportItem[] } = {};