title: Why "return <observable>" is not working?
body: <p>I am working with Angular and WordPress rest API. Everything is going fine. But I have a little confusion with the behavior of the following code.</p>
  
  <pre><code>getpost(){
      return this.http.get('someURL');
  }
  </code></pre>
  
  <p>The above function is residing in a service. When I try to subscribe to the returned observable, I get an error.
  But the code below is working fine.</p>
  
  <pre><code>getpost(){
      let someVAR = this.http.get('someURL');
      return someVAR;
  } 
  </code></pre>
  
  <p>Please clarify <strong>WHY</strong> the above code is not returning observable. thanks in advance</p>