-
-
Save kinabalu/c666abc2503e69bfe286 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class QueryService { | |
constructor(restangular) { | |
"ngInject"; | |
this.restangular = restangular; | |
} | |
find(query) { | |
return this.restangular.one("query", query).get(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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