Is it possible to inject $q in the config section of my module? Below is my sample config section.
.config([\'$q\', function ($q) { var func = function (
You can use angular.injectorto load $http and $q, and probably other services in your config block:
$http
$q
angular.module('myApp').config(function () { var injector = angular.injector(['ng']), http = injector.get('$http'), q = injector.get('$q'); });