Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Where to put <ModalsContainer /> in Nuxt 3 ? #467

Unanswered
mrleblanc101 asked this question in Q&A
Discussion options

The exemple shows to put in layouts/default.vue, but this means I need to add it to every new layouts I create.
Is it ok to add it to app.vue instead since it's global to all layouts ?
Like so:

<template>
 <NuxtLayout>
 <NuxtLoadingIndicator color="#269aa4" />
 <NuxtPage />
 <ModalsContainer />
 </NuxtLayout>
</template>
<script lang="ts" setup>
import { ModalsContainer } from 'vue-final-modal';
</script>
You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /