Dear Aurelia-users/experts,
In the Contact Manager tutorial an example is given for the canDeactivate hook. In an application that I am developing, another record is displayed from several possible actions, not necessarily from showing another route. E.g. the users scans a barcode in an input field on top of the page and then the record is shown. The router-view does not only contain the details view as in the tutorial but contains the whole application.
My question is how I can discover or recognize that another record is shown whithout having to implement it in multiple locations. Does a hook exist that could help me?
Thanks in advance