Instead of a Promise, let's convert getFruit into an Observable using the RxJS defer function. And instead of .then , we'll call .subscribe ...
確定! 回上一頁