view more software Tips and Tricks
Updated: 04/15/2019 11:04 AM
Author: Shiju Mathews
$watch is an important feature present in AngularJs. It can be used to keep a watch on any value and trigger a function when that value changes.
In the below snippet, a watch is kept on the 'DowJonesIndex' object present in the scope of the controller where this watch is defined.