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 class="main-content"> | |
<h1> This is your first component in Vue </h1> | |
<h3> {{ webpack }} </h3> | |
</div> | |
</template> | |
<script> | |
export default { | |
name: "main-content", | |
data: () => ({ | |
// reactive data property of the component. | |
webpack: 'Powered by webpack!', | |
}), | |
} | |
</script> | |
<style scoped> | |
/* | |
* Some styles so that our first component | |
* looks somewhat special | |
*/ | |
.main-content { | |
margin: 0 auto; | |
font-family: sans-serif; | |
background-color: #ccf7e2; | |
padding: 10px; | |
border-radius: 5px; | |
max-width: 500px; | |
} | |
</style> |