title: Angular 8 Resolver - How to get data from one resolver as an input to other resolver?
body: <p>I have 2 REST API. Data from both API is required. At the same time 2nd API takes input from API 1 as a parameter.</p>
  
  <blockquote>
    <p>GET api/one --> {id: 3}, this response id is required in GET
    api/two?inputFromApiOne=3 --> {name: 'SS'}</p>
  </blockquote>
  
  <p>My final response available in component should be -</p>
  
  <pre><code>{
    "id": 3, -- from API One
    "name": "SS" -- from API Two
  }
  </code></pre>
  
  <p>I have used a resolver to get data from API One but unable to use that as an input in 2nd resolver.</p>
  
  <p>I have also tried getting data from both API within resolver1. I have used flatMap but then I am ending up with data from 2nd API only.</p>
  
  <pre><code>resolve(route: ActivatedRouteSnapshot) {
    return this.myService.getDataFromApiOne(route.params.id).pipe(flatMap(data =&gt; {
      return this.myService.getDataFromApiTwo(data.someKey.id);
    }));
  }
  </code></pre>