We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
here is two example about set api? vue2
<template> <button @click="addA">Temp1 {{ obj.a }}</button> </template> <script> export default { data() { return { obj: {}, }; }, methods: { addA() { this.$set(this.obj, "a", "new property"); // It's work and dom update }, }, }; </script>
vca
<template> <button @click="addA">Temp2 {{ obj.a }}</button> </template> <script> import Vue from "vue"; import VueCompositionApi, { defineComponent, reactive, set, } from "@vue/composition-api"; Vue.use(VueCompositionApi); export default defineComponent({ setup() { const obj = reactive({}); const addA = () => { set(obj, "a", "new property"); // Obj change but dom not update }; return { obj, addA, }; }, }); </script>
Here is a demo
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
here is two example about set api?
vue2
vca
Here is a demo
The text was updated successfully, but these errors were encountered: