Last active
January 9, 2023 09:21
-
-
Save LORD-KAY/9683a4c783a9312bec03c411ef541e34 to your computer and use it in GitHub Desktop.
Get a state value directly from a vuex store without using getters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div>Item from store without getters</div> | |
<h3>{{ $store.state.name }}</h3> | |
</template> | |
<script> | |
export default { | |
data: () => ({ | |
name: '' | |
}) | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment