title: How to remove event listeners in Aurelia?
body: <p>How to remove event listeners in Aurelia?</p>
  
  <p>This doesn’t appear to do anything:</p>
  
  <pre><code>detached(){
    window.removeEventListener('scroll', this.windowScroll);
  }
  </code></pre>
  
  <p>The event is still firing when i change routes.</p>
  
  <p>I am attaching it in the <code>constructor()</code> in my view-model file:</p>
  
  <pre><code>window.addEventListener('scroll', this.windowScroll.bind(this));
  </code></pre>
  
  <p>I also tried <code>deactivate()</code> and neither are firing when I change routes.</p>