mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-23 15:00:34 +03:00
ssr: Update example
This commit is contained in:
+13
-5
@@ -23,11 +23,19 @@ const vm = new Vue({
|
|||||||
components: {
|
components: {
|
||||||
Hello: {
|
Hello: {
|
||||||
template: '<p>Hello</p>',
|
template: '<p>Hello</p>',
|
||||||
metaInfo: {
|
data() {
|
||||||
title: 'Coucou',
|
return { msg: 'Hello' }
|
||||||
meta: [
|
},
|
||||||
{ hid: 'description', name: 'description', content: 'Coucou' }
|
metaInfo() {
|
||||||
]
|
return {
|
||||||
|
title: `<b>${this.msg}</b>`,
|
||||||
|
meta: [
|
||||||
|
{ hid: 'description', name: 'description', content: this.msg }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.msg = 'Hi!'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user