What is the difference between $watch and $observe?
Answer / chaitanya
$watch is a method on the scope object which is used to watch expressions. The expression can be either strings or functions.
$observe is a method on the attrs object which is only used to observe the value change of a DOM attribute. It is only used inside directives.
| Is This Answer Correct ? | 2 Yes | 0 No |
How to bootstrap your angular app for multiple modules?
Is vue js better than angular?
What is the aot compilation?
what is the difference between constructor and ngoninit?
How to create custom pipes in angular 2?
Which directive lets you modify the behaviour of another directive?
What is the difference between service and factory?
What does full stack mean?
Explain the compilation process of angularjs?
What are templates?
How Directives are compiled?
Whats is a filter?