title: How to reload a page once using angular or javascript
body: <p>I need to reload a page after routing to a new component </p>
  
  <p>I have tried location.reload() option but it keeps on reloading without stoping</p>
  
  <pre><code>ngOninit(){
  location.reload()
  }
  </code></pre>
  
  <p>Expected result : </p>
  
  <p>I need to reload a page only oncee</p>
  
  <p>Actual result :</p>
  
  <p>It is reloading many times</p>