hi!
On Wed, Aug 15, 2012 at 8:18 AM, wingy <
johnn...@yobistore.com> wrote:
> In this demo I am trying to get a service I declared in the config() method.
It won't work since during the config phase service instances are not
created yet. You've got access to providers only (which are kind of
blueprints for creating instances). What you could do is to use the
'run' phase to do something with your service instances:
http://plunker.no.de/edit/9nF9H6?live=preview
In short:
1) In the config phase you've got only access to constants and
providers. Instances are not yet created at this point.
2) In the run phase instances are already created, you can't play with
providers anymore here.
Check the "Module Loading & Dependencies" section in
http://docs.angularjs.org/guide/module
Cheers,
Pawel
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To post to this group, send email to
ang...@googlegroups.com.
> To unsubscribe from this group, send email to
>
angular+u...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/angular?hl=en.
>
>