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 |
What are the features of angular 4.3?
What is rx observable?
What are the modules in angular 2?
Explain the validation feature in angularjs?
What is injector tree?
What is angular material?
What is splice method?
How would you create a component to display error messages throughout your application?
What is mean stack development?
Define angularjs?
What is modules? What are ngmodule metadata?
Explain ngfor directive with an example?