Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mtermoul
Created September 15, 2018 21:37
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 mtermoul/aedd6a727cde986c1ec0747c9c062850 to your computer and use it in GitHub Desktop.
Save mtermoul/aedd6a727cde986c1ec0747c9c062850 to your computer and use it in GitHub Desktop.
garage-sale/Home.vue
// garage-sale/views/Home.vue
<template>
<v-app id="home">
<v-navigation-drawer
...
</v-navigation-drawer>
<v-toolbar
...
</v-toolbar>
<v-content>
<v-container fluid xfill-height :class="{'pa-0': $vuetify.breakpoint.smAndDown}">
<v-layout row wrap>
<v-flex xs12>
<post-grid :posts="posts"></post-grid>
</v-flex>
</v-layout>
</v-container>
</v-content>
</v-app>
</template>
<script>
import PostGrid from '@/components/PostGrid'
export default {
...
computed: {
...
posts () {
return this.$store.getters.posts
}
},
components: {
PostGrid
},
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment