Hi André
Well, if your directives use separate pieces of data, the syncing isn’t a
issue to begin with, and keeping the state out of the data is enough right?
Otherwise make sure the service takes care of the syncing. Keep the cache
in the service, and hand out references in stead of copies.
You can do something like myService.getData({start:1, end:10}) and so on.
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.