· Nuxt Components
Components. Main. GitHub. A
Events. @error : Event emitted when the default slot of the component throws an error. preloadRouteComponents · Nuxt Utils Components. usePreviewMode · Nuxt Composables Components. Nuxt provides a onBeforeRouteLeave · Nuxt Utils The onBeforeRouteLeave composable allows registering a route guard within a component. Read more in Vue Router Docs. If you are using layouts and pages in your application, your app.vue should look something like this. ... . Changing Layout Dynamically. useId generates an SSR-friendly unique identifier that can be passed to accessibility attributes. Call useId at the top level of your component to generate ... These functions are designed for registering your own utils, composables and Vue APIs. For pages, components and plugins, please refer to the specific sections: ... This component will be shown when no page has been found for the current URL. components/DocumentDrivenNotFound.vue. ... useHydration · Nuxt Composables This is an advanced composable and is mostly used internally ( useAsyncData ) or by Nuxt modules. Type. signature. useHydration Navigate using the NuxtLink component · middleware (blocking). Global middleware; Layout middleware; Route middleware · asyncData (blocking) or ... useAsyncData · Nuxt Composables Within your pages, components, and plugins you can use useAsyncData to get access to data that resolves asynchronously. useAsyncData is a composable meant to be ... Testing · Get Started with Nuxt Testing. How to test your Nuxt application. If you are a module author, you can find more ... To send a redirect from a server endpoint, use sendRedirect instead. Within a Vue Component.