Because it is a single page application.so,All view is loaded at the beginning,when i click to switch view,this view will not be refreshed and how to solve it.
this is the solution I found,but tips:ReferenceError: router is not defined
code:
var progressCheckView1 = app.views.create(’#view-progressCheck’, {
url: ‘/progressCheck/’,
restoreScrollTopOnBack:false,
animate: false,
history: false,
pushState: false,
reloadCurrent: true,
reloadPages:true,
restoreScrollTopOnBack:false,
router:true,
});
progressCheckView1.router.navigate(router.currentRoute.url, {
reloadCurrent: true,
ignoreCache: true,
});