How to refresh page in framework7

Hi, i need to know how to refresh a page after success Call Back i tried all methods but every time i get an error

'/products/', {reloadCurrent: true});

i tried all this but the same problem is appearing:
Uncaught Error: Framework7: it is not allowed to use router methods on global app router. Use router methods only on related View, e.g. app.views.main.router.navigate(…)

I tried also this app.views.main.router.refreshPage() but nothing the same problem
any help please
Thank you

Please any comments ??

No you need to use Router component like:

export default (props, {$f7}) => {
   //code for add event to button {

Thank You so much this helped me a lot

1 Like