Angular2 : Chain http requests with concat()
问题 I have some difficulties to chain several HTTP requests. First, the request is defined in this service method that returns a cold Observable. FormPartService submitFormPart(id: string, part: string, data: any) { let body = JSON.stringify({ claimFileId: claimFileId, part: part, data: data }); return this.http.post('/form-part', body) .map( (res) => { let body = res.json(); if (body.data){ return body.data; } } ); } I have a variable number of form part to submit depending if they are dirty or