title: What is the replacement for performance.navigation.type in angular?
body: <p>I have this code in order to know if the page is reload by the user, unfortunately is deprecated. I want to know if angular has this approach.</p>
  
  <pre><code>if (performance.navigation.type === 1) {
     console.log('is refreshed')
  }
  
  if (performance.navigation.type === 0) {
     console.log('the user is arrived')
  }  
  </code></pre>