title: Unable to subscribe to router events in Aurelia (TypeScript)
body: <p>There's no reason this shouldn't be working:)</p>
  
  <pre><code>import {Router, RouterConfiguration} from 'aurelia-router';
  import { EventAggregator } from 'aurelia-event-aggregator';
  import {autoinject} from 'aurelia-framework';
  
  @autoinject
  export class App {
    router: Router;
    ea: EventAggregator;
    navEvent: any;
  
    constructor(eventAggregator: EventAggregator) {
      this.ea = eventAggregator;
    }
  
    configureRouter(config: RouterConfiguration, router: Router) {
      config.title = 'Intterra Management';
      config.map([
        { route: ['', 'home'], name: 'home', moduleId: 'home', nav: false, title: '' },
        { route: 'logs', name: 'logs', moduleId: 'logs', nav: true, title: 'Logs' }
      ]);
  
      this.router = router;
    }
  
    attached() {
      this.navEvent = this.ea.subscribe('router:navigation:complete', response =&gt; {
        localStorage['state'] = location.hash;
      });
    }
  
    detached() {
      this.navEvent.dispose();
    }
   ...
  </code></pre>
  
  <p>I verified the event is firing when when I navigate, but the subscribed function isn't being called. Any ideas?</p>