Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49088

Vue-router. how to disable backbutton on replace?

$
0
0

Let’s say you have login page that takes two steps (pages).

On the first one you ask for the email, on the second one you ask for password (or send a magic link or login with SSO).

So you type the email, and when you click “next” we do a router.push() to the next view (password)

Let’s say now we type the password and click “login”.

If successfull, we would like to replace router with “/home” but we don’t want te user to tap on the back button and go back to the password.

On ionic v1 we had something like this:

$ionicViewService.nextViewOptions({
     disableAnimate: true,
     disableBack: true
});

How do we do this in ionic vue?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49088

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>