Skip to content

Instantly share code, notes, and snippets.

@anoobbava
Last active July 9, 2019 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anoobbava/783cdae894bcf00add424d3588e4a1d1 to your computer and use it in GitHub Desktop.
Save anoobbava/783cdae894bcf00add424d3588e4a1d1 to your computer and use it in GitHub Desktop.
to display home page in the github graphql file
//path: src/views/Home.vue
<template>
<TrendingRepo :searchString="homeSearchString"/>
</template>
<script>
import TrendingRepo from '../components/TrendingRepo'
export default {
data () {
return {
homeSearchString: 'ruby'
}
},
components: {
TrendingRepo
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment