title: Reload a page once in angular2
body: <p>I would like to reload a page in angular once when a user visits it but this fails</p>
  
  <p>This is what ive tried</p>
  
  <p>In the homepage component i have</p>
  
  <pre><code>export class HomepageComponent implements OnInit {
  
    constructor() { }
  
    ngOnInit() {
      location.reload();
    }
  
  }
  </code></pre>
  
  <p>The page keeps on refreshing without stopping how can i reload only once on init</p>