Created
August 23, 2017 19:57
-
-
Save eperedo/52e485c5f002ab1cc5e24e0da9b63ec4 to your computer and use it in GitHub Desktop.
meta tags in single page application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
About Page {{message}} | |
</div> | |
</template> | |
<script> | |
function metaInfo() { | |
return { | |
title: 'About Title', | |
titleTemplate: '%s | My Awesome Webapp', | |
meta: [ | |
{ name: 'description', content: 'About Page', vmid: 'test' }, | |
{ name: 'og:title', content: 'Title for Facebook', vmid: 'title for facebook' }, | |
], | |
}; | |
} | |
function data() { | |
return { | |
message: 'About Message', | |
}; | |
} | |
export default { | |
name: 'about', | |
data, | |
metaInfo, | |
}; | |
</script> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment