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 solve fflickering issue in angular js?
Can you use bootstrap with angular?
How to generating new pages in angular 4 apps using ionic 3 cli?
What do you understand by controllers in angular?
What is aot?
What do you know about uppercase filter and lowercase filter in angularjs?
explain templates in angular js
What do you understand by deep linking?
How are the services injected to your application?
What is the difference between mean stack and full stack?
What is pathmatch in angular?
Is angular 7 is stable?