0

I have an angular2 application, I want to add a confirmation box on click of browser back/forward button. How can I do it in typescript? Thanks in advance.

Aluan Haddad
  • 29,886
  • 8
  • 72
  • 84
Deepak
  • 137
  • 2
  • 8
  • Possible duplicate of [How do I detect user navigating back in Angular2?](https://stackoverflow.com/questions/40381814/how-do-i-detect-user-navigating-back-in-angular2) – bipin patel Nov 15 '17 at 07:48
  • bipin patel, I checked this solution but it is not fulfilling my requirements as it is not described there, how to add a pop-up and how to prevent action on click of cancel in the pop-up. – Deepak Nov 15 '17 at 11:16
  • @Deepak make an attempt yourself, and come back in case of an actual problem with your code :) – AT82 Nov 19 '17 at 10:39

0 Answers0