title: Browser back button should keep on same page angular
body: <p>through flag handle displaying of a component in angular, here the issue is when browser back clicks it redirect to a page which accesses earlier. Here the scenario is on browser back event page should be the same but this component should be hidden. Any suggestions on this.</p>
  
  <pre><code>       &lt;div *ngIf="service.itemUnavailable"&gt;
            &lt;app-item-unavailable [itemDetails]="itemDetails"&gt;&lt;/app-item-unavailable&gt;
       &lt;/div&gt;
  </code></pre>