Keep back button saying back rather than stack history

On IOS when I navigate to a page in my app sometimes the back button reads <back

But other times it list the name of the previous page <Previous Page Name

On smaller screened devices this can overlap with the current page title. I dont understand why it is not consistently one or the other?

How can I fix this? or just make it constantly say back?

Cheers,

Fred

You can configure to show or not to show back button text in $ionicConfigProvider:
http://ionicframework.com/docs/1.0.0-rc.5/api/provider/$ionicConfigProvider/

There you can even set a custom text instead of “back”.

The page title is shown, when the page has one set with e.g.
http://ionicframework.com/docs/api/directive/ionNavTitle/

1 Like