router.goBack() several times in one jump

Back to General

Can anyone explain me a correct way for router.goBack() for several steps in one jump?

I have a history list of my path through the pages. When user tap some entry in this list, router should navigate to this page. I made a for loop and repeat router.goBack() several times. All works just fine, but may be there is a better way?

Thanks in advance!

Post Stats
  • 1
    replies
  • 478
    views
  • 2
    users