Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 6, 2019 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/f3403cfbefeae4d48bc365e934056988 to your computer and use it in GitHub Desktop.
Save parzibyte/f3403cfbefeae4d48bc365e934056988 to your computer and use it in GitHub Desktop.
Watch en profundidad con Vue.JS 2 - https://parzibyte.me/blog/2018/11/05/watch-vue-js-2/
watch: {
mascota: {
deep: true,
handler: (nuevoValor, valorAnterior) => {
console.log("La mascota era ", valorAnterior, " y ahora es", nuevoValor);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment