hey, guys. im new to ng2 . I have a question about variable observation.
When I use ng 1, i use $watch to check if the specific part of a variable 
is changed. 



*$scope.$watch('options[uuid].properties.style', function () {    
doSomething()}, true);*

the object *options *could be changed somewhere else.

when the part in *options *changed, it will trigger a function and do 
something.

i wanna know how can i do this if i use ng 2.

there must be some way, right?

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to