Navigation Guards
#111
-
Is there a way to add navigation guards? per route and global? |
Beta Was this translation helpful? Give feedback.
Answered by
posva
Dec 30, 2022
Replies: 2 comments 1 reply
-
Apart from beforeEnter, which you could put in a beforeEach most of the time, they are all the same. What are you trying to do that cannot be done? |
Beta Was this translation helpful? Give feedback.
0 replies
-
beforeEnter is what I need, but but you say that I should use beforeEach instead? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
BeforeEnter runs less times. You can still add them with
definePage()
though.Otherwise it’s router.beforeEach()c, when you create it