mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
b2b4c64807
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
33 lines
585 B
Vue
33 lines
585 B
Vue
<template>
|
|
<div>
|
|
Hello World
|
|
|
|
<Head :lang="'' + dynamic">
|
|
<Title>{{ dynamic }} title</Title>
|
|
<Meta name="description" :content="`My page's ${dynamic} description`" />
|
|
<Link rel="preload" href="/test.txt" as="script" />
|
|
</Head>
|
|
|
|
<button class="blue" @click="dynamic = Math.random() * 100">
|
|
Clickme
|
|
</button>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
|
|
export default {
|
|
setup () {
|
|
useMeta({
|
|
bodyAttrs: {
|
|
class: 'test'
|
|
}
|
|
})
|
|
return { dynamic: ref(49) }
|
|
},
|
|
head: {
|
|
title: 'Another title'
|
|
}
|
|
}
|
|
</script>
|