Hi, i'm in a urgent need to get a `timeout` feature or function to limit
the wait for a response from server, previously there was a way with the
observable returned by http:
this.http.post(url, JSON.stringify(json), {headers: headers, timeout:
1000})
// .retry(2)
// .timeout(10000, new Error('Tiempo de espera alcanzado.'))
// .delay(10)
// .map((res) => res.json())
.subscribe(
(data) => resolve(data.json()),
(err) => reject(err)
);
Unfortunately all the commented functions above have been deleted when
updated to alpha.52, how am i supposed to get a timeout from the current
http service?
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.