title: ng-click functions execute in wrong order
body: <p>I have a table that has multiple pages and a navigation to scroll through the pages. I have a function in my ng-click "refill_checkboxes" that should be executed after the next page is rendered but it is always executed first. How can I do it the right way?</p>
  
  <pre><code>&lt;table&gt;
      &lt;thead&gt;
          &lt;th&gt;Term&lt;/th&gt;
          &lt;th class="check"&gt;Check&lt;/th&gt;
      &lt;/thead&gt;
      &lt;tr ng-repeat="term in data | slice:panel.offset:panel.offset+panel.size" ng-show="showMeta(term)" ng-attr-id="{{term.id}}"&gt;
          &lt;td&gt;{{term.label}}&lt;/td&gt;
          &lt;td&gt;&lt;input type="checkbox" ng-click="switch_TermsCheck(term,this)" ng-attr-id="{{term.id}}" value="term" /&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  
  &lt;div&gt;
      &lt;i ng-click="panel.offset = (panel.offset + panel.size);refill_checkboxes(this);" ng-show="data.length &gt; panel.offset+panel.size" class='icon-arrow-right pointer'&gt;&lt;/i&gt;
  &lt;/div&gt;
  </code></pre>