why would you want an interceptor to depend on $http?
dude, your doing it wrong
On Tuesday, January 14, 2014 8:39:54 AM UTC-8, Evgeni T wrote:
>
> The idea is to get a data from another source in certain cases, so I have
> this:
>
> factory("interceptor", function ($q, $location, $http) {
>> return function (promise) {
>> return promise;
>> }
>> }
>
>
> which fails with* [$injector:cdep] Circular dependency found: interceptor
> <- $http*
>
> Also tried to inject $injector and retrieve $http using that, with same
> results. Any ideas?
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.