Alain Chautard
Dec 15, 2022

You can definitley do that in tap(). That way, you can avoid using .subscribe() in your component and instead rely on an async pipe to do the automatic subscription and unsubscription, which is even better.

Alain Chautard
Alain Chautard

Written by Alain Chautard

Google Developer Expert in Angular, Consultant and Trainer at http://www.angulartraining.com

Responses (1)