My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

in Angular is it a bad practice to use .subscribe() in components?

Kareem's photo
Kareem
·Mar 29, 2018

I've read that using .subscribe in component is considered a bad practice and that async pipe is a better alternative. I'm asking for examples and why.