Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to config? #34

Open
samuelbeek opened this issue Jun 30, 2015 · 3 comments
Open

How to config? #34

samuelbeek opened this issue Jun 30, 2015 · 3 comments

Comments

@samuelbeek
Copy link

I get an error (Failed to instantiate module app due to: Error: [$injector:unpr] Unknown provider: notify when I do something like this:

app.config( function(notify) {

})

How can I inject the notify service in the config?

@cgross
Copy link
Owner

cgross commented Jun 30, 2015

You can't inject normal services into a module config method (only providers). You'll need to use a module run method.

@samuelbeek
Copy link
Author

Okay, thanks!

@faceleg
Copy link

faceleg commented Aug 17, 2015

Fixed by #39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants