Answer the question
In order to leave comments, you need to log in
When is it appropriate to use programmatic navigation in vue?
It is possible an example on fingers?
Not a code, but a situation.
When should you really use vue-router programmatic navigation?
Answer the question
In order to leave comments, you need to log in
Well, for example, make a redirect. Conditionally - the user clicked "Save" or "Cancel" and he must be returned to some page, having performed some other actions before that (i.e. a simple link is not suitable).
The second example is authorization. The user breaks into the page without logging in, and you redirect him to the login page so that he logs in first.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question