Answer the question
In order to leave comments, you need to log in
Is it possible to set the request processing time (timeout) in angular?
Good day to all!
Let's say the situation - I went far and for a long time, where the Internet barely penetrates - and decided to open the application. And because of a weak signal (and the Internet is junk) - the request is processed for a long time - it hangs.
Is it possible in any way to set the request to fall off by itself using Angular. ?
Answer the question
In order to leave comments, you need to log in
Да, вполне.
Тут есть готовый пример установки глобального timeout-а для всех http-запросов:
stackoverflow.com/a/15702500
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question