I am using angular 6 for my project, I need to restrict the user from refreshing the page.
- when the user tries to click on the refresh button of the browser or press ctrl+f5 etc, I would like to restrict the user and show the page for it.
show alert message if he is refreshing the page