All Questions
2 questions
27
votes
1
answer
26k
views
How to use beforeRouteEnter in setup hook?
How to use beforeRouteEnter in setup hook?
There is no any mention of onBeforeRouteEnter hook in the documentation. There are only two hooks documented onBeforeRouteLeave and onBeforeRouteUpdate.
3
votes
1
answer
2k
views
this.$refs, this.$router, this.$route access with Vue 2 Composition API
Can you please tell me how to access this.$refs, this.$router, this.$route in Vue 2 Composition API setup function? There are solutions mentioned with context.$root but $root is not available with ...