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

How are the services injected to your application?

809


Wht do we use directive?

839


What is command for create & execute project in angular 4?

810


How to create datepicker in angular 4?

942


What is the future of angularjs?

777


What does ‘ng-serve’ do?

863


Explain npm?

880


What is the difference between ng-model and ng-bind in angularjs?

887


Explain the validation feature in angularjs?

829


What is the need for typescript in angular 2?

823


What is "track by" in angularjs and how does it work?

848


What is react lazy?

850


Is angular harder than react?

831


Just-in-time (jit) compiles the app in the browser, at runtime, as the application loads – this is the standard development approach. Jit is useful for development, but its performance concerns me – how would jit scale for enterprise-level applications?

821


What is aot compilation? Why use in angular 2?

929