0

This is regarding the question here and the solution answered by @Stewdebaker. How can I stop the browser pop and add my custom pop-up using the same guard service which is provided by the author mentioned above?

I tried returning true from the guard instead checking if component.canDeactivate().

  • It can, for long time ago. Currently, not anymore; https://stackoverflow.com/questions/276660/how-can-i-override-the-onbeforeunload-dialog-and-replace-it-with-my-own – paranaaan Nov 30 '22 at 02:13

0 Answers0