Skip to main content
adicionou 59 caracteres ao conteúdo
Fonte Link
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) {
         url = config.url; 
         if (url == "myUrl") { config.timeout = 10000; } 
        return config;
      }
    };
 }); 

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

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');

Já tentou atribuir o timeout no interceptor?

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

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

Fonte Link
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');