[SOLVED] Show top of page when click on back button

hi …
i use framework7 for design my webview app
by defualt when i click to back button , framework7 show the where i scrolled in previous page
i want whenever i click on back button or drag to previous page, display top of the previous page(like scroll to top of page) ,
how can i do ?
plz help me

you should add some code on pageBeforein or pageAfterin at which page as previous page

1 Like

i know that i must add same code to my app :smiley: , i want to now what code i should add in my code

http://framework7.io/docs/view.html#view-parameters
restoreScrollTopOnBack

1 Like

tnx for your responding , this option is true by default , but its not work for me
i should add this in my code ? in app or in routes ?

you should add in view.create,TRUE means remember position

1 Like

thanks a lot its working good