I need to trigger a dialog through the CanDeactivate routeguard, if the user tries to navigate out of a page without saving the form. I\'m following the solution suggested here.