How To Hide The Back Button In Ionic Framework

When using the Ionic Framework I ran into an issue with one scenario where I would get the back button to display when I really wasn’t expecting it.  The scenario was if I had a list of items, I then clicked on an item to view it, and then clicked on a link in that item to edit the item.  If in editing the item I decided I wanted to delete it and redirect to the item list view I would always get a back button instead of just being back to the list.  To fix this issue I was able to just disable the back button in my controller after I deleted the item but before navigated to the list page.  The code to help me solve this issue is pasted below.

     disableBack: true

Leave a Reply

Your email address will not be published. Required fields are marked *