Hello, I am new to working with AngularJS and have come across a scenario that I need help with.
My goal is to create a table with multiple tbody elements (which are essentially rows, but using tbody for optimal functionality with angularjs 1.0.7).
Each row should be generated based on the items I have available.
Initially, when the page loads, there are no rows/tbody elements. I plan to connect to a backend via websocket to receive data pushes. With each push, I want to add a new row/tbody if it doesn't already exist with the same key from the backend. If the key does exist, I would like to update the existing row/tbody.
For a clearer picture, here is the code snippet I am using:
<tbody ng-repeat="quote in model.messages.message">
<tr>
<td bgcolor="#FFFFFF" valign="bottom" colspan="5"><font size="2">{{quote.value1}}</font></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" align="right"><font size="2">{{quote.value2}}</font></td>
<td bgcolor="#FFFFFF" align="right"><font size="2">{{quote.value3}}</font></td>
</tr>
</tbody></table>
In this code, the "key" referred to is quote.value1.