title: angular2 getting string value out of Observable into local var
body: <p>I have a function that return an Observable containing a string, like so:</p>
  
  <pre><code>retrieveDialingCode(countrycode: string): Observable&lt;any&gt; {
      return this.countries.map(res =&gt; res
            .find(country =&gt; country.alpha2 === countrycode)
            .countryCallingCodes[0]
        .replace(/\D/g, ''));
  }
  </code></pre>
  
  <p>Works great when I use it like this:</p>
  
  <pre><code>this.retrieveDialingCode(countrycode).subscribe(res =&gt; this.phone.patchValue( { isodialingcode: res } ) );
  </code></pre>
  
  <p>However i only get an Object in dialingCode when I use it like this:</p>
  
  <pre><code>const dialingCode = this.retrieveDialingCode(phone.isocountrycode).subscribe(res =&gt; console.log(res));
  </code></pre>
  
  <p>What am i doing wrong?</p>