title: pure angularjs scroll event listener
body: <p>i'm using angularjs WITHOUT jquery, and trying to create scroll event listener.</p>
  
  <p>tried this approach:</p>
  
  <pre><code>  $rootScope.$watch(function() {
      return $window.scrollY;
    }, function(n,o) {
      console.log('scroll');
    });
  </code></pre>
  
  <p>but it dosen't work..</p>
  
  <p>I managed to achieve this goal using this technique to create resize listener:</p>
  
  <pre><code>  $rootScope.$watch(function() { // Listens to window size change
      return $window.innerWidth;
    }, function(n, o) {
      console.log('resize');
    });
  </code></pre>
  
  <p>is there a proper way to create pure angularjs scroll listener?</p>