Forum

Vue 3 - watch prope...
 
Notifications
Clear all

Vue 3 - watch property changes

1 Posty
1 Users
0 Reactions
757 Widok
0
Topic starter

example

1 Answer
0
Topic starter
export default {
    props: [ 'myData'],
    watch: {
        myData: {
            handler: function (oldItem,newItem) {
                this.myMethod();
            },
            deep: true
        },
    },

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: