Angular /w ngrx - consecutive API calls

Viewed 2919

I'm implementing ngrx in Angular 4 app. Code structure of redux related part is based on example app from ngrx repo (https://github.com/ngrx/example-app). Now I'm wondering how to implement something like that:

  1. I've got form for some kind of entity.
  2. On submit I send POST request to API with just a name of that entity.
  3. In response I get id of newly created entity.
  4. Immediately after that I want to send second request with the rest of form values and with id I've just got.

Where and how should I put that second request?

1 Answers
Related