title: How to make multiple independent subscriptions using angular 6?
body: <p>What is flatMap() ,switchmap(),pipe()? which one is best in following scenario? once both the response is received I want to call next method.</p>
  <pre><code>this.jobService.getEditableText('admins',compareFile[&quot;0&quot;].path,1000).subscribe(data=&gt;{
  this.file1=data['data'];})
  this.jobService.getEditableText('admins',compareFile[&quot;1&quot;].path,1000).subscribe(data=&gt;{
  this.file2=data['data'];})
  </code></pre>