{
this.widgetService.getWidget().subscribe(widget => this.widget = widget).unsubscribe(); //Subscribe to cause the Observable to pipe, get the widget, then unsubscribe. }
这是反模式吗?
这个错误使我相信,出于某种原因,fbLogin.unsubscribe();是问题所在,但即使删除了这两行,错误仍然存在。我使用的是rxjs@^5.5.2。_parentSubscription.unsubscribe is not a function let fbLogin = this.authData.loginWithFacebook().subscribe(() => {