title: How to return an Observable in angular 4?
body: <p>I have this method inside a <code>authProvider</code> provider class:</p>
  
  <pre><code>getUser() {
      return this.afAuth.authState.subscribe(user =&gt; {
          return user;
      });
  }
  </code></pre>
  
  <p>I would like to subscribe to it in a different class, something like: </p>
  
  <pre><code>this.authProvider.getUser().subscribe(user =&gt; console.log(user));
  </code></pre>
  
  <p>any ideas how to return an <code>Observable</code> inside the <code>getUser()</code> method?</p>