Last active
November 11, 2018 04:46
-
-
Save bluejack/440d4e47aada0d9720a8328bbd7430c0 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
/* | |
* 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