1 2 3 4 5 6 7 8
const Counter = { template: `<div>{{ count }}</div>`, computed: { count() { return this.$store.state.count; } } };