1

In myNavigator at present there are three pages: bottom.html, middle.html, and top.html. I want to get the bottom.html above the top.html and for that I am calling pushPage.

But there are two issues here:

  1. The stack looks like this bottom.html, middle.html, top.html, bottom.html.
  2. The new bottom.html is fully reconstructed, so it is wasting lots of resources in rebuilding the same content.

I tried resetToPage function but the issue is still same.

Ilia Yatchev
  • 1,254
  • 7
  • 9
enRaiser
  • 2,606
  • 2
  • 21
  • 39

1 Answers1

1

Since you have tagged Onsen UI 2 then you can use the bringPageTop method which seems to be doing exactly what you want. ^_^

So you can do either of

  • myNavigator.bringPageTop(0)
  • myNavigator.bringPageTop('bottom.html')

Good luck with your app!

Ilia Yatchev
  • 1,254
  • 7
  • 9
  • thanks I am using onsenui - v1.3.15. I guess its closer to onset UI 2. Let me try to upgrade. – enRaiser Jun 09 '16 at 11:54
  • Oh, sorry - I saw a tag `onsen-ui2`, so I thought you were using it. If you upgrade it has the exact feature that you want. – Ilia Yatchev Jun 09 '16 at 13:05