title: How to remove back button after a button click
body: <p>I need to hide back button after a function is been executed, like i need to hide if a button is been clicked</p>
  
  <pre><code>&lt;ion-navbar  hideBackbutton="hide" &gt;
          &lt;ion-title&gt;Milk Report&lt;/ion-title&gt;
      &lt;/ion-navbar&gt;
  &lt;button (click)="hideBackButton()"&gt; button &lt;/button&gt;
  </code></pre>
  
  <p>in my .ts file</p>
  
  <pre><code>export class MilkPage {
      hide: boolean = false;}
  hideBackButton(){
          this.hide = true;
      }
  </code></pre>
  
  <p>This is not working for me could someone share me right method to hide back button</p>