title: Scroll Detection in Ember JS?
body: <p>What's the best way to detect scrolling in Ember JS?  There is no built in scroll action, and I can use jquery but not sure where to place it?  Would it go in my <code>application.js</code> because it has application scope, or elsewhere?</p>
  
  <p>The actual scroll detection/logic is not an issue here, but rather how to set up scripts like this in an Embery way.</p>
  
  <p>Ideally scrolling would be an action, and could be handled as such in the application.js file:</p>
  
  <pre><code>import Ember from 'ember';
  
  export default Ember.Route.extend({
      actions: {
          onScroll: function() {
              alert('scrolled');
          }
      }
  });
  </code></pre>