2017-01-15 19:07:10 +01:00
|
|
|
<template>
|
|
|
|
<div id="user">
|
2017-01-15 22:35:54 +01:00
|
|
|
User {{loggedInUser}}
|
2017-01-15 19:07:10 +01:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
|
|
|
|
export default {
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-01-15 22:35:54 +01:00
|
|
|
computed: {
|
|
|
|
count() {
|
|
|
|
return this.$store.state.count;
|
|
|
|
},
|
|
|
|
loggedInUser() {
|
|
|
|
return this.$store.state.loggedInUser;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-01-15 19:07:10 +01:00
|
|
|
beforeCreate: function() {
|
|
|
|
this.userUrl = this.$resource('users');
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted: function() {
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
},
|
|
|
|
|
|
|
|
components: {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
</style>
|