title: Confirmation Box on click of browser back button in Angular2 with Typescript?
body: <p>I have Angular2 with Typescript application. I want to add a functionality wherein if user clicks on back button of browser, user should get a confirmation box. If user clicks cancel, the user should stay on the same component. How to achieve that?</p>