-
Notifications
You must be signed in to change notification settings - Fork 101
Where to put <ModalsContainer />
in Nuxt 3 ?
#467
Unanswered
mrleblanc101
asked this question in
Q&A
-
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>
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment