Hi Sanders,
Thanks for your response.
Let's say that we have some code like following:

$scope.$watchCollection("apples", .......);

Let's say that on 10s cycle, an API call returns list of new collection of
apples. This new collection is going to perform set operation against old
items in "apples". Now let's say that as part of this processing, I am
adding 10 new entries in existing "apples" collection. I don't want this
watchCollection to be executed 10 times. I will prefer that this is only
called once.
Only other alternative I can think of is to replace it with "watch" and
then blow away old reference of "apples" and set new collection object
there.

Let me know if this does not explain what I am trying to ask.

Thanks


On Tue, Sep 16, 2014 at 2:50 PM, Sander Elias <[email protected]> wrote:

> Hi Naveen,
>
> Do you process the updates in 1 go, or do you allow an digest in between?
> Angular only updates its bindings after your process is done. However, it
> does not cache the updates that are the
> result of your update.
>
> Regards
> Sander
>
> --
> 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.
>



-- 
Naveen K Kohli
http://www.netomatix.com

-- 
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.

Reply via email to