title: Calling Angular2 service in a loop
body: <p>I have a service written that sends some data to an API request. However, i need to call it multiple times depending on how many checkboxes a user clicked. What is the best way to do this? I was looking into Observables <code>forkJoin</code> method but am not sure how to implement it.</p>
  
  <p>Here is how i currently call the service (without loop):</p>
  
  <pre><code>this.myService.update(id, data).subscribe(
      data =&gt; { 
          console.log('Data: ', data);
      },
      error =&gt; { console.log('Error: ', error }
  );
  </code></pre>