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

26 lines
380 B
Vue
Raw Permalink Normal View History

<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>