title: angular ng-repeat add style on condition
body: <p>i am using ng-repeat on a list of divs and i am manually adding items in the json that it's rendering this divs. I need to position the last div that i add in json and it's automatically rendiring on the screen, where the couse cursor is, and the rest of them remain on same position, but without giving the position in the json that is rendering it.</p>
  
  <p>My approach on this was something like this</p>
  
  <pre><code>&lt;div ng-repeat="contact in jsonContacts" style="left: {{lastX}}px; top: {{lastY}}px;"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>but when i do this, all the divs get this position, so i need to make a condition using $last variable to add or remove the style tag with those left and top css.</p>
  
  <p>Thank you in advance, Daniel!</p>