Example $watch() Method

The $watch() method runs the callback function every time a change in the 'value' data property is detected.

Current value: 4