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
What are the exit codes in node.js? List some exit codes?
Write command to generate a component in specific module in angular cli?
What do you understand by rest in angular?
Why is typescript used in angular?
What is $rootscope in angularjs? How is it different from the scope?
What are the new features of angular 2? Why you used angular 2?
What are the symbols used in one way and two ways data binding?
Difference between angularjs and react.js.
What is routerstate in routers?
Which method can be used to define a service and its method?
What is ng stand for?
What is aot?
Explain ng-app directive angularjs?
Difference between var, let, const?
What are modules in angular?