title: How to call a scope inside a ng-repeat just for the last element?
body: <p>I want to call a scope function inside my <code>ng-repeat</code> just for the last element, like this:</p>
  
  <pre><code>&lt;div ng-repeat="patient in patients" &gt;
    &lt;div ng-if="$last" ng-load="myFunction()"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>But <code>ng-load</code> doesn't work!</p>