title: AngularJS document.ready doesn't work when using ng-view
body: <p>I have a problem with document.ready in angularJS when navigating between several routes in my app. It only works when I use ctrl+f5 (page reload); it seems navigating between pages does not change state of the document to ready.   </p>
  
  <p>Controller</p>
  
  <pre><code>  angular.element(document).ready(function() {
      window.scrollTo(0,90);
  });
  </code></pre>
  
  <p>Main html file</p>
  
  <pre><code>&lt;!DOCTYPE html &gt;
  &lt;html ng-app="myApp"&gt;
      &lt;head&gt;
          &lt;meta http-equiv="content-type" content="text/html;charset=utf-8" /&gt;
          &lt;title&gt;&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div class="container"&gt;
              &lt;div ng-view&gt;&lt;/div&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>app file</p>
  
  <pre><code>var mainModule = angular.module('myApp', ['ui.bootstrap.dialog']);
  function viewServiceConfig($routeProvider) {
  $routeProvider.
      when('/', {
          controller: SomeController,
          templateUrl: 'somehtml.html'
      }).
  
  
  
      when('/someroute', {
          controller: SomeRouteController,
          templateUrl: 'someroutehtml.html'
      }).
  
  
      otherwise({
          redirectTo: '/'
      });
  }
  
  mainModule.config(viewServiceConfig);
  </code></pre>