Throwing specific errors (Consuming http services section)

When importing ‘rxjs/add/operator/catch’ the catch method doesnt appear.
How can I solve it?

Another problem in this section:
When adding (error: Responce) to deletePost method ( in posts.component.ts ) .subscribe declaration marks as deprecated.

1 Like