# Display a list in an ui-template

**URL:** <https://discourse.nodered.org/t/display-a-list-in-an-ui-template/98110>\
**Category:** General\
**Tags:** dashboard-2\
**Created:** [13 July 2025 10:46 UTC](https://discourse.nodered.org/t/display-a-list-in-an-ui-template/98110 "2025-07-13T10:46:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![duaw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/duaw/32/20970_2.png) [@duaw](https://discourse.nodered.org/u/duaw)\
**Post date:** [13 July 2025 10:46 UTC](https://discourse.nodered.org/t/display-a-list-in-an-ui-template/98110/1 "2025-07-13T10:46:24Z")

</div>

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.

```auto
<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

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [13 July 2025 11:35 UTC](https://discourse.nodered.org/t/display-a-list-in-an-ui-template/98110/2 "2025-07-13T11:35:55Z")

</div>

> [@duaw](#):
>
> `ng-repeat`

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

Vue version of ng-repeat is [v-for](https://www.w3schools.com/vue/vue_v-for.php)

---

<div class="post-metadata">

**Author:** ![duaw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/duaw/32/20970_2.png) [@duaw](https://discourse.nodered.org/u/duaw)\
**Post date:** [13 July 2025 12:04 UTC](https://discourse.nodered.org/t/display-a-list-in-an-ui-template/98110/3 "2025-07-13T12:04:22Z")

</div>

Great. Thanks for the link.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [27 July 2025 12:05 UTC](https://discourse.nodered.org/t/display-a-list-in-an-ui-template/98110/4 "2025-07-27T12:05:02Z")

</div>

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