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

Error: [$injector:unpr] Unknown provider: DSProvider <- DS <- Users <- UserServices #364

Open
kim2014 opened this issue Oct 5, 2016 · 1 comment

Comments

@kim2014
Copy link

kim2014 commented Oct 5, 2016

I wrote the unit test for my angular JS controller and It complained about

Error: [$injector:unpr] Unknown provider: DSProvider <- DS <- Users <- UserServices

I ran the unit test by the karma command:
karma run test/karma.conf.js

Attached all of my directives, controller and my unit test
DSProvider.zip

@jmdobry
Copy link
Member

jmdobry commented Oct 5, 2016

Change this:

angular.module('ps.users.services', ['ngResource']);

to this:

angular.module('ps.users.services', ['ngResource', 'js-data']);

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

2 participants