Skip to content

Instantly share code, notes, and snippets.

@andreliem
Created June 13, 2018 02:56
Show Gist options
  • Save andreliem/21056c5e25b36921228a4a837b3a7b67 to your computer and use it in GitHub Desktop.
Save andreliem/21056c5e25b36921228a4a837b3a7b67 to your computer and use it in GitHub Desktop.
<script type="text/babel">
const DropDown = Vue.component("dropdown", {
template: "#dropdown",
data() {
return {
showDropDown: true,
links: [
{
name: "Account"
},
{
name: "Profile"
},
{
name: "Logout"
}
]
};
}
});
let App = new Vue({
el: "#app",
components: {
DropDown
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment