Angular.js Functions

The Angular.js support the function like $watch(), $digest() and $apply that can be used to bind data to variables in the views.

The $scope object in the angular.js is used various functions we can also call them central functions.


The following is the basic infomation about $watch(), $digest() and $apply() functions.


Function Description
$watch() Add watch list to the $scope object. 
$digest()  It iterates over the watch list variables.  
$apply   It execute the custom code.

Usually, the $scope object is used to bind the data with variables which can be used in the application.


Majorly, The angular.js uses the function $ and $scope.digest() to check and update values based on the changes in variable values.


In the next tutorial, we will learn detail about the function $watch() with example.