I am creating a grid using the ng-repeat directive. I need to be able to edit inline, which I achieved using the same idea provided here.
I now also need to be able to add new rows to this grid on click of a button. I am doing this by pushing a new entry to my collection on each button click, which inserts a new row into my grid. I want this new row to get added in editable mode. However, to do that, I need to be able to set the editMode property to true dynamically while pushing the new row. How can I achieve this?
JSFiddle: http://jsfiddle.net/Thw8n/69/