How do I add a beforeEach navigation guard to a route within the Component that is specified on the route? #1750
-
Rather than letting the I am thinking that internally it may be implemented as something like
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
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