Skip to content

Instantly share code, notes, and snippets.

@ea2305
Last active May 7, 2020 16:28
Show Gist options
  • Save ea2305/5a063cb1b01821e0f21c27ad8fbe387f to your computer and use it in GitHub Desktop.
Save ea2305/5a063cb1b01821e0f21c27ad8fbe387f to your computer and use it in GitHub Desktop.
example ssr - vue app update
// app.vue
<template>
<div id="app">
<img alt="Vue logo" src="./assets/logo.png">
<HelloWorld msg="Welcome to Your Vue.js App"/>
</div>
</template>
<script>
import HelloWorld from './components/HelloWorld.vue'
export default {
name: 'app',
metaInfo: {
title: 'My Example App',
titleTemplate: '%s - Yay!',
htmlAttrs: {
lang: 'en',
amp: true
}
},
components: {
HelloWorld
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment