title: Scroll event in AngularJS
body: <p>I have a div with a scrollbar in it. Now I want to get an event, that triggers every time, the user scrolls. </p>
  
  <p>Is that possible in AngularJS, or do I have to use jQuery for that?</p>
  
  <p><strong>Edit:</strong>
  I came up with following so far:</p>
  
  <pre><code>// JS
  .directive('scroll', function() {
      return function(scope, element, attrs){
  
          angular.element(element).bind("scroll", function(){
              console.log(1);
          });
      };
  });
  
  // HTML
  &lt;div class="wrapper" style="height: 1550px" scroll&gt;
  [...]
  &lt;/div&gt;
  </code></pre>
  
  <p>But that does not work (I don't see any logs in my Firebug-Console).</p>