mardi 22 mai 2018

Popup to prevent a user to leave my page, Angular

I'm developing an Angular 4 project that needs to load some data on backend while a window is opened.

What is happening is that users just don't wait for the program to finish the load and they leave the page.

What I'd like to do is to prevent this by triggering a popup while they hit the close window button on their browser.

I've seen some javascript code that does this, but I'm wondering if Angular has a method that achieves this as well.




Aucun commentaire:

Enregistrer un commentaire