Ionic 2 - Disabling back button for a specific view
<p>So I'm messing around a bit with Ionic <strong>2</strong>, and I want to know how to disable the back button for a specific view.</p>

<p>What I'm doing is <code>this.nav.push(SomePage);</code> It works, but the <code>NavController</code> automatically puts a back button there for me. How do I disable the back button?</p>

<p>NOTE: I do know that I can use <code>this.nav.setRoot(SomePage)</code> to set the SomePage as root and not have a back button, but that doesn't provide the useful animation that <code>NavController</code> automatically does.</p>

<hr>

<p>EDIT: This question is somewhat old, but it has garnered some attention, so I think it would also be appropriate to mention for future reference that there's another reason you may not want to use <code>this.nav.setRoot</code> in order to push a page with no back button: it erases the preexisting stack of pages. So if you wanted to still be able to go back to the previous page in code without giving the user a UI way to do so, <code>setRoot</code> wouldn't allow you to do that.</p>