Skip to content

Instantly share code, notes, and snippets.

@kinabalu
Created January 3, 2016 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kinabalu/c666abc2503e69bfe286 to your computer and use it in GitHub Desktop.
Save kinabalu/c666abc2503e69bfe286 to your computer and use it in GitHub Desktop.
bundle.js:12618 Error: [$injector:unpr] Unknown provider: restangularProvider <- restangular <- queryService
http://errors.angularjs.org/1.4.8/$injector/unpr?p0=restangularProvider%20%3C-%20restangular%20%3C-%20queryService
at bundle.js:166
at bundle.js:4432
at Object.getService [as get] (bundle.js:4580)
at bundle.js:4437
at getService (bundle.js:4580)
at invoke (bundle.js:4612)
at Object.instantiate (bundle.js:4629)
at Object.<anonymous> (bundle.js:4489)
at Object.invoke (bundle.js:4621)
at Object.enforcedReturnValue [as $get] (bundle.js:4473)
export default class QueryService {
constructor(restangular) {
"ngInject";
this.restangular = restangular;
}
find(query) {
return this.restangular.one("query", query).get();
}
}
import angular from 'angular';
import queryService from './queryService';
import restangular from '../common/3rdparty/restangular';
export default angular
.module('app.services', ['restangular'])
.service({
queryService
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment