Created
May 14, 2021 02:09
-
-
Save mattmaribojoc/a81942d8b127d4a1a8db092f12a7322c to your computer and use it in GitHub Desktop.
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
<script setup> | |
import { ref, computed } from 'vue' | |
// all of these are automatically bound to the template | |
const a = ref(3) | |
const b = computed(() => a.value + 2) | |
const changeA = () => { a.value = 4 } | |
</script> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment