Display a list in an ui-template

Hi!

I have to use ui-template to display msg.payload.
msg.payload ist an array of (at most) 10 objects, each has "time" and "text"
I can display msg.payload but I thought I could have a nice list.

<template>
    <div>
        <h2>Messages</h2>
        <p class="my-class">Entries: {{msg.payload}} </p>  
        <ul>
            <li ng-repeat="entry in msg.payload">
                {{entry}}
            </li>
        </ul>
    </div>
</template>

(generated ...) does not work. What do I miss here? This is no "low code programming" at all for me ...
Thanks, Uwe

Since you have tagged this dashboard-2 you should be using vue syntax not angular.

Vue version of ng-repeat is v-for

Great. Thanks for the link.

1 Like