Nuxt/test/fixtures/basic/pages/store.vue

24 lines
398 B
Vue
Raw Normal View History

2017-03-25 23:53:50 +00:00
<template>
<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>
</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>