Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vue add watcher

vm.$watch('person.name.firstName', function(newValue, oldValue) {
	alert('First name changed from ' + oldValue + ' to ' + newValue + '!');
});
Source by codingexplained.com #
 
PREVIOUS NEXT
Tagged: #vue #add #watcher
ADD COMMENT
Topic
Name
7+6 =