In my componant, i watch a props name "menu".
I want in this method, get the value of another props name "allowNext".
menu: {
handler: () => {
console.log(this.allowNext); !!! FAIL !!!
console.log(this.props.allowNext); !!! FAIL !!!
if(this.allowNext){
// DO SOMETHING
}
},
deep: true,
},
Vue said : 'props in undefined'. So, when menu changed, i need to check if prop allowNext is true (false by default) to do something.
PS : I don't want if possible add another props for communicate.