Created
August 23, 2017 19:57
-
-
Save eperedo/ff9f95496edbbe1b36d845eb07236e4d 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