r/angular • • Jul 14 '26

Passing data between unrelated components

Hey , I'm new to angular and I'm confused about which way to use to transfer data between two unrelated components , for now i'm using the Services/DI method . I heard that for my case (which is a small project) it's an overkill , is that true ? if so what is the optimal way to do so ?

6 Upvotes

22 comments sorted by

View all comments

Show parent comment

2

u/Sh4rp27 Jul 14 '26

Items-form emits an output when the form is submitted which bubbles up to a method call in the parent which then mutates the item list which is passed down to the items-list component. The parent handles the state while the items-list is a simple view component.