title: Call function with angular when scrolling
body: <p>Is there a way to detect, if a element was scrolled and call a function and do some stuff with angularJS? Something like a <code>ng-scroll</code> or so, which works simply like a <code>ng-click</code>? I didn't really find a solution...</p>
  
  <p>This is what I would like to do:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>angular.module("myApp", []).controller("myController", function($scope) {
    $scope.checkIfScrolling = function() {
      console.log("scrolled...");
    }
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.box-scroll {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100px;
    background-color: lightgrey;
    overflow: auto;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"&gt;&lt;/script&gt;
  &lt;div app="myApp" controller="myController" class="box-scroll" ng-scroll="checkIfScrolling()"&gt;
    &lt;div class="box-item"&gt;I'm an item within box-scroll&lt;/div&gt;
    &lt;div class="box-item"&gt;I'm an item within box-scroll&lt;/div&gt;
    &lt;div class="box-item"&gt;I'm an item within box-scroll&lt;/div&gt;
    &lt;div class="box-item"&gt;I'm an item within box-scroll&lt;/div&gt;
    &lt;div class="box-item"&gt;I'm an item within box-scroll&lt;/div&gt;
    &lt;div class="box-item"&gt;I'm an item within box-scroll&lt;/div&gt;
    &lt;div class="box-item"&gt;I'm an item within box-scroll&lt;/div&gt;
    &lt;div class="box-item"&gt;I'm an item within box-scroll&lt;/div&gt;
    &lt;div class="box-item"&gt;I'm an item within box-scroll&lt;/div&gt;
    &lt;div class="box-item"&gt;I'm an item within box-scroll&lt;/div&gt;
    &lt;div class="box-item"&gt;I'm an item within box-scroll&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>