mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +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>
|