2016-06-28 90 views

回答

0

RxJs。這意味着如果你不打電話subscribe它不會做任何事情。

假設this.updates$Observable

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

aField是其中array of object存儲在你的響應結構的字段中。

相關問題