v2 preroute do not work

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

What alternatives are used in V2

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

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