title: How to return observable in observable map in Angular
body: <p>I can really find no words for what I want to do. So I just show my attempt..This is what I tried:</p>
  
  <pre><code>register(): Observable&lt;boolean&gt; {
  
     return this.registerNew().pipe(
       map(userData =&gt; {
         return this.updateProfile().pipe(                   (*1)
           map(profileData =&gt; {
             return profileData ? true : false;
           }))
       }))
  }
  </code></pre>
  
  <p>But of course I get the following error message:</p>
  
  <p><code>Type 'Observable&lt;false | Observable&lt;boolean&gt;&gt;' is not assignable to type 'Observable&lt;boolean&gt;'.</code></p>
  
  <p>I am also thinking about using await instead of return in the line which I marked with (*1). </p>
  
  <p>But still I can't get it to work in a nice way.</p>