I came across this post the other day that documents how to make a 
singleton service in Angular 2:
http://twofuckingdevelopers.com/2015/04/angular-2-singleton-service/

However at the bottom, someone comments that "Everything injected using 
Angular 2’s DI is already a Singleton"

Can you please provide me some guidance as to whether I need to go through 
the steps advised in the post from the link above or if an Angular 2 
Service is automatically a singleton by default.

I surely do not wish to create a new instance each time I make use of some 
of the Service's functions but I am not certain whether I need to add the 
traditional technique's in order to create  singleton version

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