Example $watch() Method

Drag the slider to change the value so that the $watch() method is triggered. The callback function writes a message with the new and old values.

Current value: 4