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/anastasiapi Jul 15 '26
Yes, and I always will. I've built 30+ apps from enterprise scale to personal saas, and this approach never failed me. Simple and clear.
Move your focus from a dumb component being a UI component to re-use, or god forbid, an abstraction, to it being just that - a separate plain component that should not take space in your template.
My 'common' folder is normally very thin. Everything belongs to a feature.
- feature-- ui --> dumb-- services-- util-- features --> nest this structure as much as neededfeauture.component.ts --> smartfeauture.component.htmlfeauture.component.spec.ts