Vue Dynamic Utwórz zegarek
vm.$watch('counter', function(newValue, oldValue) {
alert('Counter changed from ' + oldValue + ' to ' + newValue + '!');
});
TheDutchScorpion
vm.$watch('counter', function(newValue, oldValue) {
alert('Counter changed from ' + oldValue + ' to ' + newValue + '!');
});