mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-10 06:32:26 +03:00
Favor function syntax over per-attribute function syntax
This commit is contained in:
@@ -10,12 +10,12 @@ new Vue({
|
||||
<p>Inspect Element to see the meta info</p>
|
||||
</div>
|
||||
`,
|
||||
metaInfo: {
|
||||
metaInfo: () => ({
|
||||
title: 'Basic',
|
||||
titleTemplate: '%s | Vue Meta Examples',
|
||||
htmlAttrs: {
|
||||
lang: 'en',
|
||||
amp: undefined
|
||||
}
|
||||
}
|
||||
})
|
||||
}).$mount('#app')
|
||||
|
||||
Reference in New Issue
Block a user