I have a function that return an Observable containing a string, like so:

```
retrieveDialingCode(countrycode: string): Observable<any> {
    return this.countries.map(res => res
          .find(country => country.alpha2 === countrycode)
          .countryCallingCodes[0]
      .replace(/\D/g, ''));
}

```

Works great when I use it like this:

```
this.retrieveDialingCode(countrycode).subscribe(res => this.phone.patchValue( { isodialingcode: res } ) );

```

However i only get an Object in dialingCode when I use it like this:

```
const dialingCode = this.retrieveDialingCode(phone.isocountrycode).subscribe(res => console.log(res));

```

What am i doing wrong?