Skip to content

Instantly share code, notes, and snippets.

@earth774
Created April 10, 2019 09:54
Show Gist options
  • Save earth774/35574d97f224e0df0ab14be35d4faceb to your computer and use it in GitHub Desktop.
Save earth774/35574d97f224e0df0ab14be35d4faceb to your computer and use it in GitHub Desktop.
Code page HelloWorld.vue
<template>
<div class="hello">
<h1>{{ msg }}</h1>
<button>Google</button>
<button>Facebook</button>
</div>
</template>
<script>
export default {
name: "HelloWorld",
props: {
msg: String
}
};
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
margin: 40px 0 0;
}
ul {
list-style-type: none;
padding: 0;
}
li {
display: inline-block;
margin: 0 10px;
}
a {
color: #42b983;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment