Created
November 2, 2015 20:38
-
-
Save yyx990803/bf30b6fc8a3404db5a45 to your computer and use it in GitHub Desktop.
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
<!-- MyComponent.vue --> | |
<!-- css --> | |
<style> | |
.message { | |
color: red; | |
} | |
</style> | |
<!-- template --> | |
<template> | |
<div class="message">{{ message }}</div> | |
</template> | |
<!-- js --> | |
<script> | |
export default { | |
props: ['message'], | |
created() { | |
console.log('MyComponent created!') | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment