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
  • 26,341
  • 6
  • 64
  • 77
Deepak
  • 97
  • 1
  • 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