Last active
March 17, 2017 08:07
-
-
Save raed667/61dc447a8103b9f15ab0d95f945c23bb to your computer and use it in GitHub Desktop.
Revisions
-
RaedsLab created this gist
Mar 17, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,32 @@ <template> <item v-for='item in hn.topStories' :key='item.id' :item='item'> </item> </template> <style> // ... </style> <script> function callback_fn (that) { console.log(that) } export default { name: 'item-list', props: { type: String }, data () { return { hn: [] } }, apollo: { hn: { query: callback_fn(this) } } } </script>