v2 preroute do not work


#1
var myApp = new Framework7({
    preroute: function(view, options) {
        if (!userLoggedIn) {
            view.router.loadPage('auth.html');
            //load another page with auth form 
            return false;
            //required to prevent default router action
        }
    }
});

What alternatives are used in V2


#2

Check the v2 docs, async route maybe a solution http://framework7.io/docs/routes.html#async-route


#3

I hope it serves you view1.router.load ({url: ‘./pages/bienvenido.html’}); where view1 is my view iniz this for v2 I have not read the new documentation I do not know if there is a better way or method but for version 1.6 there are several ways I hope it works