2017-03-25 23:53:50 +00:00
|
|
|
<template>
|
2017-05-13 17:15:53 +00:00
|
|
|
<div>
|
|
|
|
<h1>{{ baz }}</h1>
|
|
|
|
<br>
|
|
|
|
<p>{{ $store.state.counter }}</p>
|
2018-01-31 19:46:57 +00:00
|
|
|
<br>
|
|
|
|
<h2>{{ getVal }}</h2>
|
2018-01-31 20:22:02 +00:00
|
|
|
<br>
|
|
|
|
<h3>{{ getBabVal }}</h3>
|
2017-05-13 17:15:53 +00:00
|
|
|
</div>
|
2017-03-25 23:53:50 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { mapGetters } from 'vuex'
|
|
|
|
|
|
|
|
export default {
|
2018-01-31 19:46:57 +00:00
|
|
|
computed: {
|
|
|
|
...mapGetters('foo/bar', ['baz']),
|
2018-01-31 20:22:02 +00:00
|
|
|
...mapGetters('foo/blarg', ['getVal']),
|
|
|
|
...mapGetters('bab', ['getBabVal'])
|
2018-01-31 19:46:57 +00:00
|
|
|
}
|
2017-03-25 23:53:50 +00:00
|
|
|
}
|
|
|
|
</script>
|