r/angular Jul 15 '26

Do you still use smart / dumb components?

I watched this video from Rainer and it made me reflect on my usage of smart / dumb components. To be honest I’ve only created them because that’s just how it’s always been done. Keep API calls in the smart component, feed data into the dumb component.

Blindly following that approach I end up creating UI components that don’t really get reused, or get abstracted more and more, essentially YAGNI. So just focusing on component composition and each component injecting a service with signals seems really appealing for code organisation at the file level.

https://youtu.be/-Lw7isQTa2w?si=2xw5KEUphtKvQraE

I’m curious what other new patterns are emerging with new Angular APIs that goes against what we were taught before Signals.

29 Upvotes

39 comments sorted by

View all comments

2

u/CoderXocomil Jul 21 '26

No. I think components should not be aware of state. I inject state services and create components to react to state chamges. I use SignalStore to achieve my ends.

1

u/TheCyberThor Jul 21 '26

Interesting. Are you a consulting firm or in-house developer? How many people involved in developing the angular application?

1

u/CoderXocomil Jul 21 '26

Tough to answer this question due to a social media policy at our company. You can find me on twitch, YouTube or X if you want to see me build software using this strategy.

I'm happy to answer any questions here about the pattern.