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

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


  • @kullboys, probably better use the popPage() if you’re removing the last page.
    However, to get the index you will have to parse Navigator pages property:

    var xPages = document.querySelector('#appNavigator').pages;
    for (i = 0; i < xPages.length; i++) {

Log in to reply