Angular 2 HTTP request run again with rxjs and retry()


A failed request you can ask very comfortable again with the method retry():

import 'rxjs/add/operator/retry';

...

const result = this.http.get(url)
.retry(2);