Skip to content

How do I add a beforeEach navigation guard to a route within the Component that is specified on the route? #1750

Closed Answered by posva
trajano asked this question in Help and Questions
Discussion options

You must be logged in to vote

This is not possible because the component is mounted after the navigation happens and therefore the navigation guard is added then. There is this proposal to bring the possibility of such a pattern: vuejs/rfcs#460

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by posva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants