2
0
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:
Atinux
2017-12-07 12:51:19 +01:00
parent d3557fa60b
commit 1a7b49ade1
+13 -5
View File
@@ -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!'
}
}
}