471079 (1) [Avatar] Offline

I am reading chapter 10 and is curious of why you have chosen to return Promise<> from the functions in loc8r-data.service.ts. Similar functionality is implemented returning Observables<> in the Hero Tutorial available on https://angular.io/tutorial/toh-pt6. What are the motivations behind returning Promise?

From Getting MEAN:
  public addReviewByLocationId(locationId: string, formData: any): Promise<any> {
    const url = `${this.apiBaseUrl}/locations/${locationId}/reviews`;
    return this.http
      .post(url, formData)
      .then(response => response.json() as any)

From angular.io:
  addHero(hero: Hero): Observable<Hero> {
    return this.http.post<Hero>(this.heroesUrl, hero, httpOptions).pipe(
      tap((_hero: Hero) => this.log(`added hero w/ id=${_hero.id}`)),

380383 (9) [Avatar] Offline
I think he did it because it was easier to understand how promise (single event) works, and then use that knowledge to move to into use of observables (Stream).