Nuxt/test/fixtures/bridge/plugins/setup.js

16 lines
293 B
JavaScript

import { onGlobalSetup, ref } from '@nuxtjs/composition-api'
import { defineNuxtPlugin } from '#app'
export default defineNuxtPlugin(() => {
const globalsetup = ref('🚧')
onGlobalSetup(() => {
globalsetup.value = '✅'
})
return {
provide: {
globalsetup
}
}
})