diff --git a/docs/content/2.elements/9.link.md b/docs/content/2.elements/9.link.md index 6b59da7a..788983c1 100644 --- a/docs/content/2.elements/9.link.md +++ b/docs/content/2.elements/9.link.md @@ -11,7 +11,7 @@ navigation: ## Usage -The Link component is a wrapper around [``](https://nuxt.com/docs/api/components/nuxt-link) through the [custom](https://router.vuejs.org/api/interfaces/RouterLinkProps.html#Properties-custom) prop that provides a few extra props: +The Link component is a wrapper around [``](https://nuxt.com/docs/api/components/nuxt-link) through the [`custom`](https://router.vuejs.org/api/interfaces/RouterLinkProps.html#Properties-custom) prop that provides a few extra props: - `inactive-class` prop to set a class when the link is inactive, `active-class` is used when active. - `exact` prop to style with `active-class` when the link is active and the route is exactly the same as the current route. diff --git a/src/runtime/components/elements/Link.vue b/src/runtime/components/elements/Link.vue index 9e99e54e..acfe7bca 100644 --- a/src/runtime/components/elements/Link.vue +++ b/src/runtime/components/elements/Link.vue @@ -25,6 +25,7 @@ import { isEqual } from 'lodash-es' import { defineComponent } from 'vue' import { NuxtLink } from '#components' +import { useRoute } from '#imports' export default defineComponent({ inheritAttrs: false,