This repository has been archived on 2021-09-06. You can view files and clone it, but cannot push or open issues or pull requests.
vuejs_course/2021-05-04_vuex-01-starting.../src/components/TheCounter.vue

14 lines
175 B
Vue
Raw Normal View History

2021-05-04 18:05:03 +02:00
<template>
<h3>{{ counter }}</h3>
</template>
<script>
export default {
computed: {
counter() {
2021-05-04 22:20:06 +02:00
return this.$store.getters.finalCounter;
2021-05-04 18:05:03 +02:00
}
}
};
</script>