Hi Noah,

A singleton helps you by providing a way to share data between other parts. 
You inject the same singleton into different things, and they all see the 
same instance, which makes them a good way to communicate. You can store 
things like UserLoggenIn for example. 
A factory gives you a way to stamp out new instances that are from there on 
self-contained. Can't come up right now with a good example, that is not 
about OOP. I don't like OOP;)

Regards
Sander

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