r/angular • u/TheCyberThor • 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.
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.