I have a table of users, each row representing a user. On the end of each row I have a delete link, which when clicked deletes the user from database.
Now I need to update the table to reflect the changes.
I know how I would do this with jQuery, but how do I do it the angular way?
Do I need to add a ng-model
attribute to each row?
This is how I have attached the click event:
<a ng-click="deleteUser(user._id)">Delete</a>
I have a <tr ng-repeat="user in users"></tr>
printing out the users. I'm thinking if I remove the user from the model, that might be the way to go.
EDIT: I found now this question, which also answer my question.