title: Detect browser refresh in an Angular project
body: <p>I want to detect when a page is refreshed using a router  in my <a href="https://en.wikipedia.org/wiki/Single-page_application" rel="nofollow noreferrer">single-page application</a> (Angular project).</p>
  <p>Is there an alternate way?</p>