If the viewmodel IS the $scope object, there is no need to call $apply. The two-way-databing does it automatically.
On Sun, Apr 19, 2015 at 9:29 AM, <[email protected]> wrote: > Hi, > I have a viewmodel in .net (which fires member-changed events) which I > need to bind (two way) to an Angular controller. > One way from the viewmodel to angular - I think I can use $scope $apply > and update the scope members upon changes of the viewmodel members. > What is the recommended way for updating that viewmodel when a change in > $scope members happen? Is there an event fired when a scope member changes? > Thanks, > vibrantrh > > -- > You received this message because you are subscribed to the Google Groups > "AngularJS" 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 http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "AngularJS" 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 http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
