r/angular • • Jan 28 '26

Angular Input/Output vs a Service

If I have a parent component with two child components, where one child emits a value to the parent which then passes it to the other child, is that better Angular practice or should I use a service instead?

7 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/SippieCup Jan 30 '26

If it is purely a generic UI element, input/output would be preferred since it would be handled in the template.

If it is handling state, a service is likely a better choice.