title: Angular : ng-init does not run on load
body: <p>I have seen a few exmaples on stack overflow about this ng-init issue, although I cant seem to find one which references it with the use of a controller.</p>
  
  <p>I have called the function in the controller by having the following in the html file</p>
  
  <pre><code>&lt;div class="tab-container" ng-controller = "ExampleController" ng-init = "init()" &gt;
  </code></pre>
  
  <p>In the controller:</p>
  
  <pre><code>$scope.init = function(){
  
          alert("do something");
  };
  </code></pre>
  
  <p>It does run, but it runs before the components have loaded on the screen.</p>
  
  <p>Am i missing something?</p>
  
  <p>Thanks</p>