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

12 lines
292 B
JavaScript
Raw Normal View History

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