Ep17#06 - mapGetters, sử dụng cú pháp ES (ok)

C:\Users\Administrator\Desktop\imoney\src\components\AppResult.vue
<template>
<div>
{{ result }}
</div>
</template>
<script>
export default {
name: 'AppCount',
computed: {
result(){
return this.$store.state.result;
}
}
}
</script>C:\Users\Administrator\Desktop\imoney\src\components\AppCount.vue
C:\Users\Administrator\Desktop\imoney\src\components\OtherResult.vue
C:\Users\Administrator\Desktop\imoney\src\store.js
C:\Users\Administrator\Desktop\imoney\src\main.js
C:\Users\Administrator\Desktop\imoney\package.json
PreviousEp17#05 - Lấy dữ liệu với getter trong vuex (ok)NextEp17#07 - Mutations thay đổi state từ components (ok)
Last updated
Was this helpful?