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().