Nuxt/test/fixtures/basic/pages/route-announcer.vue

26 lines
380 B
Vue

<script setup>
useHead({
title: 'First Page',
})
definePageMeta({
layout: 'with-route-announcer',
})
</script>
<template>
<div>
<NuxtLink
role="link"
to="/route-announcer2"
>
Link
</NuxtLink>
<button
role="button"
@click="() => useHead({ title: 'Dynamically set title' })"
>
Button
</button>
</div>
</template>