Skip to content

Instantly share code, notes, and snippets.

@bluejack
Last active November 11, 2018 04:46
Show Gist options
  • Save bluejack/440d4e47aada0d9720a8328bbd7430c0 to your computer and use it in GitHub Desktop.
Save bluejack/440d4e47aada0d9720a8328bbd7430c0 to your computer and use it in GitHub Desktop.
/*
* This is only going to show a list of the keys themselves.
*
* Expected output:
* - key1
* - key2
* - key3
*/
Vue.component('event-list', {
template: "<div><ul><li v-for='key in list'>{{ key }}</li></div>",
props: {
list: {
type: Array,
required: true
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment