title: How to call another service/api only if the first one has successfully executed?
body: <p>I am very new to angular and typescript. I have been trying this.</p>
  <pre><code>doSomething() {
      return this.http.post(this.path + &quot;dosomething&quot;, data).toPromise();
  }
  </code></pre>
  <p>now in .ts you are awaiting it</p>
  <pre><code>await servicesCalls.doSomething();
  </code></pre>
  <p>Upon its success implementation I need to do the same with all another maps from service.</p>
  <p>But first I want to make sure it has posted the data.</p>
  <pre><code>await serviceCalls.doAnotherThing();
  </code></pre>
  <p>The <code>api</code> is returning <code>IHTTPACTIONRESULT</code> i.e. <code>Ok()</code>.</p>
  <p>Can anyone help me with that? Thanks in advance!</p>