What is the difference between $watch, $digest and $apply?
Answer Posted / satish kasturi
$digest is to run the watch cycle from non-angular variables.
$watch for running the watch cycle while modifying the variables in the current angularjs component
$apply is to run the watch cycle for all the angulajrs components
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Why is ngoninit called twice?
What is a scope in AngularJS?
What is template reference variable in angular 4?
Does angular use ajax?
What angularjs 7?
Can we have any service for ngfor and ngif in angular?
What is router events in angular?
How do components communicate with each other?
Explain One-way binding in AngularJS?
What is angular good for?
What are the types of feature modules?
What is @outputs in angular?
Differentiate between ng-Class and ng-Style?
What are the cookies methods?
What is token based authentication in angular 4?