Get the value from html input using ng-repeat

hi there,

I m showing a table on the dashboard using ng-repeat in a template node. One column is a text input.
How ever I am not able to get the value of the text input back into js.
I think because of the ng-repeat..
Where is my mistake?

Can anyone help me out?

try...

<table>
    <tbody ng-repeat="x in msg.payload">
    <tr>
        <td><input type="text" ng-model="x.input" ng-dblclick="send({payload: x})" /> </td>
        <td>{{ x.name }}</td>
        <td>{{ x.age }}</td>
    </tr>
    </tbody>
</table>

works for me, thank you :slight_smile:

If I want to go one step further and only want the input in the lines in which no value comes from my function node, would that be possible?

You can do

ng-dblclick="send({payload: x.input})" 

... But why would you. You won't know which row it came from.

I wanted to complete the table which is generated from an incomplete database via the input and display the completed input ..

but if this is not possible i will do it in a different way..

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