Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
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!
-
@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.).