vm.$watch('counter', function(newValue, oldValue) { alert('Counter changed from ' + oldValue + ' to ' + newValue + '!'); });