title: How to detect browser back button click in Angular2
body: <p>I want to clear <strong>Localstorage</strong> data on browser back button click.
  But how to detect <strong>browser back button</strong> click in <strong>Angular2</strong>.
  I am not getting any exact solution.
  Can anyone please tell me how to do this?</p>