it never works!
app.views.main.router.clearPreviousPages();
VM8357:67 Uncaught TypeError: app.views.main.router.clearPreviousPages is not a function
at HTMLElement. (:67:42)
pageInit: function(e, page) {
var self = this;
$('.badge-pro-add').on('click', function(e) {
app.views.main.router.clearPreviousPages();
// or
app.router.clearPreviousPages();
self.router.clearPreviousPages();
});
},
shastox
2
ΠΠΎΠΊΠ°ΠΆΠΈΡΠ΅ ΠΊΠΎΠ΄, Π³Π΄Π΅ Ρ Π²Π°Ρ ΠΈΠ½ΠΈΡΠΈΠ°Π»ΠΈΠ·ΠΈΡΡΠ΅ΡΡΡ view.
1 Like
`
mainView.router.clearPreviousPages(); -> this is not working !
mainView.router.clearPreviousHistory(); -> this is working !
var app = new Framework7({
root: '#app',
theme: theme,
view: {
iosDynamicNavbar: false,
xhrCache: false,
},
routes: routes,
});
var mainView = app.views.main;
mainView.router.navigate('/home/');
shastox
4
Π’ΡΡ Π½Π΅Ρ ΠΊΠΎΠ΄Π° ΠΈΠ½ΠΈΡΠΈΠ°Π»ΠΈΠ·Π°ΡΠΈΠΈ view.
clearPreviousPages Π΄ΠΎΡΡΡΠΏΠ΅Π½ Ρ 3.6.0
clearPreviousHistory Π΄ΠΎΡΡΡΠΏΠ΅Π½ Ρ 2.0.10