mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-24 00:30:33 +03:00
Favor function syntax over per-attribute function syntax
This commit is contained in:
@@ -10,9 +10,9 @@ const ChildComponent = {
|
||||
name: `child-component`,
|
||||
props: ['page'],
|
||||
template: `<h3>You're looking at the <strong>{{ page }}</strong> page</h3>`,
|
||||
metaInfo: {
|
||||
title () {
|
||||
return this.page
|
||||
metaInfo () {
|
||||
return {
|
||||
title: this.page
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user