title: how to load data from DB after redirecting in angular
body: <p>I'm making an app in angular and node.js. I have a listing page where I list multiple products. When a user clicks on any product, it will go to <code>view_product</code> page where details of product is being shown. When Admin wants to delete a product from <code>view_product</code> page, then it will delete the product but when it redirects to listing page, then it does not show listing untill Admin refresh and compile whole app again. My code looks like following to redirect.</p>
  
  <pre><code> this.router.navigate(['/listing']);
  </code></pre>
  
  <p>I'm fetching product in <code>ngOnInit()</code>. I think I need to call that method somehow when it navigates. But if I navigate from <code>view_product</code> page to <code>listing</code> using a link, then it shows products just fine. Here is how my navigation link looks like:</p>
  
  <pre><code>&lt;li&gt;&lt;a [routerLink]="['/listing']"&gt;Listing&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>What am I missing? I need to redirect programatically from <code>view</code> to <code>listing</code>. Any help will be highly appreciated! Thanks.</p>