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.
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.
Google Developer Expert in Angular, Consultant and Trainer at http://www.angulartraining.com