Multiple text fields in one UI Template

Hi,

The following ui template displays a name and a picture. But how do i add more text fields eg msg.text msg.time ?

<div ng-bind-html="msg.topic">   </div>
<img ng-src={{msg.image}} height="50" width="50" />

There is no need to use the ng-bind-html for msg.topic since that will only ever be text and not contain html.

The standard way to output is, I think, listed in the help information.

<div>{{payload}}</div>
<div>{{text}}</div>

I don't think you need the msg. prefix though I may be wrong. I don't use Dashboard very often.

2 Likes

Thanks,
msg. is required btw

1 Like

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