title: Converting function from RxJS v5.x to v6
body: <p>I've started with an Angular 5 template and converting it to Ang 6.
  <a href="https://github.com/mmacneil/AngularASPNETCore2WebApiAuth" rel="nofollow noreferrer">https://github.com/mmacneil/AngularASPNETCore2WebApiAuth</a></p>
  
  <p>I'm aware RxJS has changed e.g. RxJS v5.x to v6.
  So how to  I convert this code to v6 taken that the .map has been changed completely.</p>
  
  <pre><code>register(email: string, password: string, firstName: string, lastName: string,location: string, gender:string, birthDate:any): Observable&lt;UserRegistration&gt; {
  let body = JSON.stringify({ email, password, firstName, lastName,location,gender,birthDate });
  let headers = new Headers({ 'Content-Type': 'application/json' });
  let options = new RequestOptions({ headers: headers });
  
  return this.http.post(this.baseUrl + "/accounts", body, options)
    .map(res =&gt; true)
    .catch(this.handleError);
  }
  </code></pre>
  
  <p>UserRegistration </p>
  
  <pre><code>export interface UserRegistration {
  email: string;  
  password: string;
  firstName: string;
  lastName:  string;
  location: string;
  birthDate: any;
  gender: string;
  </code></pre>
  
  <p>}</p>