-
-
Notifications
You must be signed in to change notification settings - Fork 48
Closed
Description
📚 What are you trying to do?
I need the information from the route to find the active link; since we are not using NuxtLink. I needed to hack into the configuration to get the information and was wondering if there is an easier way?
$nuxt.config.globalProperties.$router?.currentRoute;
🔍 What have you tried?
$nuxt.config.globalProperties.$router?.currentRoute;
This works, but wondering if there is a cleaner way, when I call useIonicRouter it doesn't have the additional route information
ℹ️ Additional context
See example code here
https://stackblitz.com/edit/nuxt-starter-rqvhxt?file=components%2FMainMenu.vue
lstegger
Metadata
Metadata
Assignees
Labels
No labels