/** PUT: update the hero on the server. Returns the updated hero upon success. */
updateHero (hero: Hero): Observable {
  return this.http.put(this.heroesUrl, hero, httpOptions)
    .pipe(
      catchError(this.handleError('updateHero', hero))
    );
}