Skip to main content
1 de 2
LuKs Sys
  • 1,7mil
  • 2
  • 15
  • 22

Já tentou atribuir o timeout no interceptor?

angular.module('app')
  .factory('timeoutInterceptor', function ($rootScope, $q) {
    return {
      'request': function(config) {
        config.timeout = 10000;
        return config;
      }
    };
 }); 

###No config... $httpProvider.interceptors.push('timeoutInterceptor');

LuKs Sys
  • 1,7mil
  • 2
  • 15
  • 22