Movatterモバイル変換


[0]ホーム

URL:


Wayback Machine
20 captures
16 Nov 2022 - 29 Aug 2025
AugSEPOct
26
202220232024
success
fail
COLLECTED BY
Collection:Common Crawl
Web crawl data from Common Crawl.
TIMESTAMPS
loading
The Wayback Machine - http://web.archive.org/web/20230926023443/https://nuxt.com/docs/api/components/nuxt-error-boundary
🎤 Nuxt Nation is coming - The largest online Nuxt Conference is happening on October 18-19, 2023.Register

<NuxtErrorBoundary>

The<NuxtErrorBoundary> component handles client-side errors happening in its default slot, using Vue'sonErrorCaptured hook.

Events

  • @error: Event emitted when the default slot of the component throws an error.
    <template>  <NuxtErrorBoundary@error="logSomeError"><!-- ... -->  </NuxtErrorBoundary></template>

Slots

  • #error: Specify a fallback content to display in case of error.
      <template>    <NuxtErrorBoundary><!-- ... -->      <template #error="{error }">        <p>An error occurred: {{ error }}</p>      </template>    </NuxtErrorBoundary>  </template>

[8]ページ先頭

©2009-2025 Movatter.jp