import { inject, Router, IRouter } from 'aurelia'
@inject( Router, IRouter)
export class Component {
constructor(router, irouter) {
....
}
onBtnPress() {
this.router.load(...)
this.irouter.load(...)
}
}
this.router
throws an error that the route/component was not found/registered.
this.irouter
works as expected.
Whats the difference between the two? Using the inspector, both seem to have the same properties.