title: How to call another HTTP request after forkJoin is completed (RxJS)?
body: <p>I have looked this for quite awhile, but I really haven't figured out how to do it &quot;properly&quot;. All the other answers are either deprecated or do this in the opposite order.</p>
  <p>What I would like to do, is that I want to send a bunch of HTTP request in parallel, thus the forkJoin. Then and only then when they are completed, I would like to call another HTTP request (which is now inside the submitOrder()).</p>
  <p>And then at some point, if the first HTTP requests were successful I would like to mark my objects not dirty again.</p>
  <p>This code works, but I've understood that this is really not the &quot;proper&quot; way of doing it, because it call subscription inside of a subscription.</p>
  <p>So please, what is the real RxJs way?</p>
  <pre><code>forkJoin(obsArray).subscribe(res =&gt; {
              console.log('All were resolved');
              this.products.forEach(element =&gt; {
                  this.isNotDirtyAnymore();
              });
              this.submitOrder();
          });
  
  
  submitOrder() {
          this.service.submitOrder(this.id).subscribe(response =&gt; {
              console.log('Order was submitted');
          }, error =&gt; {
              console.log(error);
          });
      }
  </code></pre>