title: Is there any destructor in Aurelia's view-model classes?
body: <p>Is there some destructor or Dispose method in Aurelia's view-model classes? Basically I have following code:</p>
  
  <pre><code>import {apiFetchClient} from 'common/restClient/apiFetchClient';
  import {json} from 'aurelia-fetch-client';
  import {inject} from 'aurelia-framework';
  
  @inject(apiFetchClient)
  export class BetsList {
  
    constructor(apiFetchClient){
      var timer = setInterval(()=&gt;this._fetchBets(), 1000);
  
      this.apiFetchClient = apiFetchClient;
      this.betSystems = [];
      this._fetchBets();
    }
  
    _fetchBets(){
      this.apiFetchClient
        .fetch('/bets')
        .then(response =&gt; response.json())
        .then(data =&gt; this.betSystems = data);
    }
  }
  </code></pre>
  
  <p>I would like to kill timer when view is about to be destroyed. </p>