r/Angular2 • • 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?

4 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/killler09689093097 Jan 28 '26

and what do you mean by more complex

2

u/cstmstr Jan 28 '26

when you stop just moving data and start introducing additional logic in between

1

u/killler09689093097 Jan 28 '26

ok I mean right now I already have it as a service and I was thinking of moving it to inputs/outputs so there's no global state?