mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-09 00:12:25 +03:00
ssr: Update example
This commit is contained in:
+13
-5
@@ -23,11 +23,19 @@ const vm = new Vue({
|
||||
components: {
|
||||
Hello: {
|
||||
template: '<p>Hello</p>',
|
||||
metaInfo: {
|
||||
title: 'Coucou',
|
||||
meta: [
|
||||
{ hid: 'description', name: 'description', content: 'Coucou' }
|
||||
]
|
||||
data() {
|
||||
return { msg: 'Hello' }
|
||||
},
|
||||
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