Majid is right, this is much simpler. I forgot off the top of my head if services required you to return a function or if the function in the module .service wiring is the constructor function itself, so I went with factory as I was 100% sure of that without looking at the docs.
I did now just check the docs, and the way you have it should just work by switching factory to service as Majid suggested. -- 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.
