I use canDeactivate()in the view model. The user can move from the view, where he canDeactivatedoes not have to perform his checks and simply return true (in this case, when the user clicks the "Back" button, which is in another view). It canDeactivatedoesn't seem to accept any arguments (such as parameters passed to router.navigateToRoute). If this happened, I could indicate that the back button was pressed in the arg parameter when called navigateToRoute. What would be a good way to give canDeactivatethis necessary information?
source
share