Vue · Senior · Question 41 of 75

When would you call router.addRoute()?

Explanation

If you add a route matching the current location, navigate again (router.replace(router.currentRoute.value.fullPath)) so it takes effect. removeRoute deletes it.

Further reading

Problem with a question

Vue · Senior · question 41

Test yourself

Take the Vue · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz