How to get the "index" to use with removePage()?

  • Hello,

    I want to use removePage(). How do I get the index please? Is there a function to get index?

    Thanks for your help!

  • Onsen UI

    @mmike Just use JavaScript: myNavigator.pages.indexOf(pageElementToBeRemoved). The index can also be a negative value (-1 for the topPage, -2 for the previous one, etc.).

Log in to reply