Skip to content

Instantly share code, notes, and snippets.

@ianfabs
Last active September 9, 2018 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianfabs/e6a01d997fa92da14ceda0e5337569e8 to your computer and use it in GitHub Desktop.
Save ianfabs/e6a01d997fa92da14ceda0e5337569e8 to your computer and use it in GitHub Desktop.
Vue component template
<template>
<div id="root">
<h1>{{title}}</h1>
</div>
</template>
<script>
export default {
name: 'Component',
props: {
title: String
},
data() {
return {
items: []
};
},
}
</script>
<style scoped>
#root{
display: inline-flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
}
h1{
font-size: 1.35em;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment