2016-06-28 6 views

Antwort

0

RxJsfaul ist. Das heißt, wenn Sie nicht subscribe anrufen, wird es nichts tun.

this.updates$ Unter der Annahme ist eine Observable:

this.updates$.map(objects => objects.json()) 
      .subscribe(x => this.names$ = x.aField.map(obj => obj['name'])); 

aField das Feld Ihrer Antwortstruktur ist, wo die array of object gespeichert ist.