title: AngularJS: Delete clicked elements parent row
body: <p>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.</p>
  
  <p>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 <code>ng-model</code> attribute to each row?</p>
  
  <p>This is how I have attached the click event:</p>
  
  <pre><code>&lt;a ng-click="deleteUser(user._id)"&gt;Delete&lt;/a&gt;
  </code></pre>
  
  <p>I have a <code>&lt;tr ng-repeat="user in users"&gt;&lt;/tr&gt;</code> printing out the users. I'm thinking if I remove the user from the model, that might be the way to go.</p>
  
  <p>EDIT: I found now <a href="https://stackoverflow.com/questions/14250642/angularjs-how-to-remove-an-item-from-scope">this</a> question, which also answer my question.</p>