Go one view back, Framework 7 v2

Hello, I’m based off the tab-view template, and i would like a way to go back with javascript once the view is opened.

Here is what i’ve tried: app.router.back();

Which doesn’t work, any help would be appreciated,

Thanks!

You must call router.back() on view instance, not on app

I sort of tried that, but how do i get the current view instance? Thanks again!

http://framework7.io/docs/view.html#view-app-methods

app.views.current