So the subscribe function takes three parameters: onNext onError onCompleted this._heroService.addHero(this.hero).subscribe( hero=> this.hero= hero, ...
確定! 回上一頁