home / software / tips and tricks / What is the use $watch in AngularJS?

What is the use $watch in AngularJS?

Updated:  04/15/2019 11:04 AM
Author:  Shiju Mathews

Status:    Resolved.


$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.

Tags: What is the use $watch in AngularJS?
Updated on: March 2024