Last active
September 9, 2018 08:26
-
-
Save ianfabs/e6a01d997fa92da14ceda0e5337569e8 to your computer and use it in GitHub Desktop.
Vue component template
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 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