I want to implement your dialog with a the CanDeactive Guard. In order to so I have implemented the CanDeactive Guard
and extended my component and created the following function
I get a dialog, but the result will not trigger the CanDeactive Guard (I think it is undefinied). I think he looses the scope because of the subscribe. Could you guys help me?