I am trying to pass a msg that contains the string value "numbers". "numbers" contains options for a dropdown box as HTML.
This is the msg object I am using:
And this is the code in my template node:
<table id="table" border="1">
<tr>
<th>Duty</th>
<th>Name</th>
</tr>
<tbody>
<tr ng-repeat="row in msg.payload">
<td align="center" ng-repeat="item in row" >{{item}}</td>
<td>
<select>
{{numbers}}
</select>
</td>
</tr>
</tbody>
</table>
How to I get the "numbers" data to appear between the <select></select>
? If I paste the actual value of "numbers" there, the UI renders the dropdown box correctly. Currently I just get a blank dropdown
EDIT:
Here is how the UI looks:
The repeat is reading the "First Duty" etc from the array and is working correctly, but the second column should be populated with a drop down containing the options defined in the "numbers" string.