Send msg.topic from template node

Hi i have a simple template node that displays different icons depending on its input and if clicked sends an output. How do i get it to send the msg.topic as well as the payload.

<md-button ng-click="send({payload: false})" class="filled rounded" style = "background-color:{{msg.color}}"> 
   
   <div class="fa {{msg.icon}}" ></div>
</md-button>

the above works ok but i've tried all sorts to send a msg.topic along with the payload, i'm sure it can't be that dificult ?
Thanks Chris

Can you show what you’ve tried to send the topic along? Take a look at https://nodered.org/docs/user-guide/messages and see if you understand how the message you’re sending currently works.

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