title: How do I make a new call to an api when a previous one finished successfully?
body: <p>I am new to angular and rxjs, and I have the following scenario, in which I need that after a call to an api is successfully resolved to make a new call, in the context of angular / rxjs I don't know how to do it</p>
  <pre><code>handler(): void {
    this.serviceNAme
      .createDirectory(this.path)
      .pipe(
        finalize(() =&gt; {
          this.someProperty = false;
        })
      )
      .subscribe(
        (data) =&gt; console.log(data),
        (error) =&gt; console.error(error.message)
      );
  }
  </code></pre>
  <p>What is the correct way to make a new call to an api when a previous one was successful?</p>