Error when using app.router.refreshPage()


#1

When I call:

app.router.refreshPage();

I get the following error message:

[Error] TypeError: undefined is not an object (evaluating ‘e.url’)
navigate (framework7.min.js:12:90548)
Global Code (Script Element 1:1)

The following works:

app.router.navigate(’/controller/action/’, {ignoreCache: true, reloadCurrent: true});

However, I would like to use refreshPage() so that I do not have to specify the URL.

I’m on F7 3.3.2.


#2

.router must be used on View not on app instance! For example

app.views.main.router.refreshPage()