Sign in
Log inSign up

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.

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct