Forum

Vue 3 - watch prope...
 
Notifications
Clear all

Vue 3 - watch property changes

   RSS

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: