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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between Rootscope and Scope in AngularJS?

808


What is the use of ngfor directive in angular?

814


Write the cli command to generate a component in angular 4?

786


What is the scope of a $scope?

929


What are the web application security risks that a web developer should avoid while doing development using angularjs?

806


What is activatedroute in routes?

869


What is angular 2 and typescript?

832


Explain what is directive and mention what are the different types of directive?

831


What is latest version of angularjs?

826


List some inbuilt services in angularjs?

748


Explain validations done in angularjs?

836


How AngularJS will automatically be initialized?

799


What is aot and jit in angular?

815


Should you use angular?

754


What is singleton object?

801