2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-23 23:50:33 +03:00

Favor function syntax over per-attribute function syntax

This commit is contained in:
Declan de Wet
2016-11-10 15:28:21 +02:00
parent 7c58dfc725
commit 495f61629a
12 changed files with 87 additions and 79 deletions
+4 -1
View File
@@ -20,7 +20,10 @@
postsCount: 'publishedPostsCount'
}),
metaInfo: {
title: 'Home'
title: 'Home',
meta: [
{ vmid: 'description', name: 'description', content: 'The home page' }
]
}
}
</script>
+6 -3
View File
@@ -18,9 +18,12 @@
computed: mapGetters([
'post'
]),
metaInfo: {
title () {
return this.post.title
metaInfo () {
return {
title: this.post.title,
meta: [
{ vmid: 'description', name: 'description', content: this.post.title }
]
}
}
}