Skip to content

Instantly share code, notes, and snippets.

@xtsolucoes
Created March 8, 2017 01:18
Show Gist options
  • Save xtsolucoes/2e95ca78d0a11d4694c173c65c219b17 to your computer and use it in GitHub Desktop.
Save xtsolucoes/2e95ca78d0a11d4694c173c65c219b17 to your computer and use it in GitHub Desktop.
<script>
import {mapState} from 'vuex'
import ChatUserList from './../components/chat/ChatUserList'
export default {
components: {
'user-list': ChatUserList
},
computed: {
...mapState({
chatStore: state => state.chatStore
})
},
created () {
this.$store.dispatch('setUserLIst')
}
}
</script>
<template>
<div class="wrapper" id="chat-wrapper">
<section class="heading">
<h1 class="page-title">Chat</h1>
</section>
<section class="content">
<div class="col-md-2" id="user-list-col">
<user-list></user-list>
</div>
<div class="col-md-10" id="chat-content-wrapper">
conteundo das mensagens
</div>
</section>
</div>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment