D
D
Dmitry Arushanov2016-08-02 20:02:12
Angular
Dmitry Arushanov, 2016-08-02 20:02:12

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

2 answer(s)
Зелимхан Бельтоев, 2016-08-02
@daruwanov

Да, вполне.
Тут есть готовый пример установки глобального timeout-а для всех http-запросов:
stackoverflow.com/a/15702500

D
Dmitry Arushanov, 2016-08-03
@daruwanov

Fine! Thank you!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question