Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between $watch and $observe?



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

Post New Answer

More AngularJS Interview Questions

What do you understand by metadata in context of angular 2 application?

0 Answers  


What is an ng model?

0 Answers  


Does angular use ajax?

0 Answers  


What is eventemitter in angular?

0 Answers  


What is cross site script inclusion (xssi)?

0 Answers  


How $location is different from window.location in angularjs?

0 Answers  


What is service method?

0 Answers  


What is routerstatesnapshot?

0 Answers  


What is the use of @Input and @Output?

0 Answers  


What are the types of linking function?

0 Answers  


What is in angular url?

0 Answers  


What is the purpose of tsconfig.json in angularjs?

0 Answers  


Categories