Display array from sort node in template list

Good day,

I have an array of objects that I sort in a sort node.

I then want to display them in a list which I try using this in the template node:

<table class="table">
    <tr>
        <th style="width:10em;">MMSI</th>
        <th>Distance</th>
    </tr>
    <tr ng-repeat="event in msg.payload">
        <td>{{::msg.payload[0].senderMmsi}}</td>
        <td>{{::msg.payload[0].DistanceToWaypointKM}}</td>
    </tr>
</table>

But this way I only show the first object (msg.payload[0].senderMmsi & msg.payload[0].DistanceToWaypointKM)

How can I display the complete array in the list?

Try calling the event not msg.payload

<td>{{event.senderMmsi}}</td>
 <td>{{event.DistanceToWaypointKM}}</td>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.