Hey guys,
I always get circular dependency (CD) when I try to apply a middleware that's registered as a factory on angular.module. If this middleware has the $http dependency it breaks because of CD. If I delete $http even having other dependencies, it works.
Hey guys, I always get circular dependency (CD) when I try to apply a middleware that's registered as a factory on angular.module. If this middleware has the
$http
dependency it breaks because of CD. If I delete$http
even having other dependencies, it works.Any ideas on how to fix that? Thanks