How to set $http timeout in AngularJs

How to set $http timeout in AngularJs

  • Post was not sent – check your email addresses!
  • Global Timeout To set a global http timeout in angularjs , we need to use the following code, which takes time in milliseconds to override the default http timeout value.
  • View all posts by Shiva Charan
  • To specifically set a custom timeout for a particular http call that you make, you can include it as part of the config object.

Global Timeout
To set a global http timeout in angularjs, we need to use the following code, which takes time in milliseconds to override the default http timeout value.

@collegestash: How to set $http timeout in AngularJs

To set a global http timeout in angularjs, we need to use the following code, which takes time in milliseconds to override the default http timeout value.

To specifically set a custom timeout for a particular http call that you make, you can include it as part of the config object.

How to set $http timeout in AngularJs