当我运行 linter 时,它说:
subscribe is deprecated: Use an observer instead of an error callback
代码(来自带有 angular-cli 的 Angular 7 应用程序):
this.userService.updateUser(data).pipe(
tap(() => {bla bla bla})
).subscribe(
this.handleUpdateResponse.bind(this),
this.handleError.bind(this)
);
不知道我应该使用什么以及如何使用...
谢谢!


