Nuxt/test/fixtures/bridge/pages/index.vue
2021-10-11 19:48:03 +02:00

19 lines
438 B
Vue

<template>
<div>
<div>Hello Vue {{ version }}!</div>
<div>
State: {{ state }} <button @click="updateState">
Update
</button>
</div>
</div>
</template>
<script setup>
useMeta({ meta: [{ name: 'description', content: 'This is a page to demo Nuxt Bridge.' }] })
const version = ref('2')
const state = useState('test-state')
state.value = '123'
const updateState = () => { state.value = '456' }
</script>