title: Remove a view from the back history - Ionic2
body: <p>Anyone knows how to remove a view from the back history (or navigation stack) in ionic2?</p>
  
  <p>In Ionic 1 I solved this with</p>
  
  <pre><code>this.$ionicHistory.nextViewOptions({
    disableAnimate: true, 
    disableBack: true
  });
  </code></pre>
  
  <p>Would be really useful, for example, to fully remove the login page of my application from the history once a successfully login was performed. </p>
  
  <p>Just not showing the back button isn't enough in such case, since Android terminals got their own physical back button on the devices.</p>
  
  <p>I tried, after my login function returned a successful promise and before pushing the next page in the stack:</p>
  
  <pre><code>this.navController.pop();
  </code></pre>
  
  <p>or </p>
  
  <pre><code>this.navController.remove(this.viewCtrl.index);
  </code></pre>
  
  <p>but unfortunately both weren't successful :(</p>