Arrays und Objekte beobachten (Vue 3)
watch(
colours,
() => {
console.log('The list of colours has changed!');
},
{
deep: true,
}
);
Relieved Rook
watch(
colours,
() => {
console.log('The list of colours has changed!');
},
{
deep: true,
}
);