Created
May 8, 2018 18:17
-
-
Save gkarugi/93944e8e0a161f20995fc987b18f2793 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
<template> | |
<div class="uk-offcanvas-content"> | |
<div>{{ websiteName }}</div> | |
<navigation-bar></navigation-bar> | |
<main-content-area></main-content-area> | |
</div> | |
</template> | |
<script> | |
import { mapState, mapGetters } from 'vuex'; | |
import NavigationBar from "./header/NavigationBar"; | |
import MainContentArea from "./content-area/MainContentArea"; | |
export default { | |
name: "AppComponent", | |
components: { | |
MainContentArea, | |
NavigationBar | |
}, | |
mounted () { | |
this.$store.dispatch('fetch'); | |
}, | |
computed: { | |
...mapState(['website']), | |
...mapGetters({ | |
websiteName: 'websiteName', | |
websiteLogoUrl: 'websiteLogoUrl', | |
}), | |
}, | |
} | |
</script> | |
<style scoped> | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment