mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-05 03:47:12 +00:00
26 lines
380 B
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>
|