I'm curious as to the best practices when passing data around in a shared 
service? They are very convenient so whats stopping me putting all my 
service logic into one shared service? Efficiency I presume?

For example, i'm making a project management app so I will have jobs and 
tasks that i'm retrieving from a mongo database - it could be around 5 jobs 
and maybe 50-100 tasks. I also have form views that would need to retrieve 
some of the same data. Would it be more efficient to load everything from a 
shared service when the app starts so I can have access to it in the 
component and the form, or is it better to make a separate mongo call for 
each component?

-- 
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to