When I run the linter it says:
subscribe is deprecated: Use an observer instead of an error callback
Code (from an angular 7 app with angular-cli):
this.userService.updateUser(data).pipe(
tap(() => {bla bla bla})
).subscribe(
this.handleUpdateResponse.bind(this),
this.handleError.bind(this)
);
Don't know exactly what should I use and how...
Thanks!
.subscribe({ next: this.handleUpdateResponse.bind(this), error: this.handleError.bind(this) })
– kos