title: How to run function in AngularJS controller on document ready?
body: <p>I have a function within my angular controller, I'd like this function to be run on document ready but I noticed that angular runs it as the dom is created.</p>
  
  <pre><code> function myController($scope)
   {
       $scope.init = function()
       {
          // I'd like to run this on document ready
       }
  
       $scope.init(); // doesn't work, loads my init before the page has completely loaded
   }
  </code></pre>
  
  <p>Anyone know how I can go about this?</p>