Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 6, 2019 06:07
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save parzibyte/20822eef825d3fee884c911767889e50 to your computer and use it in GitHub Desktop.
const app = new Vue({
el: "#app",
data: () => ({
nombre: "",
}),
watch: {
nombre(nuevoValor, valorAnterior){
console.log("El nombre pasó de ser '%s' a '%s'", valorAnterior, nuevoValor);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment