title: Conditional HTML with ng-repeat
body: <p>Here is the code:</p>
  
  <pre><code>tr.row(ng-class="{editing: is_dirty(p)}" ng-repeat="p in persons")
   td {{p.name}}
   td {{p.surname}} 
  
   if is_dirty(p)
     button.action Save
   else
     button.action Edit
     button.action Delete
  </code></pre>
  
  <p>I am starting with my interface, will try to implement some inline editing. So the first step in this is that I list all persons, and on click I add a new row. Now, a new row should only have the save button, existing rows would have an edit and a delete button.</p>
  
  <p>The above code does not work (using jade, express, node and angular).
  I've looked at <code>ng-switch</code> and <code>ng-if</code> but they look overly complex to me for a simple if else...</p>