title: AngularJS load data on state load
body: <p>I have a page in my Angular.js app that does a http request and fills in some textboxes with the results.</p>
  
  <p>I navigate to this page by using :</p>
  
  <pre><code>$state.go('utab.history');
  </code></pre>
  
  <p>but when it gets to the page all the textboxes are blank, i am currently using Ionics ion refresher :</p>
  
  <pre><code>&lt;ion-refresher
      pulling-text="Pull to refresh..."
      on-refresh="showappraisal()"&gt;
  &lt;/ion-refresher&gt;
  </code></pre>
  
  <p>to call the controllers function which then populates all the textboxes, but now the apps nearly done i need to solve this issue.</p>
  
  <p>I have tried using <code>$rootScope.$emit("CallParentMethod", {});</code> just before  <code>$state.go('utab.history');</code> and it does run the function but again, it just doesnt populate the textboxes until i do the pull refresh (even though they call the same function).</p>
  
  <p>Is there a way to get an event when utab.history loads?</p>