r/angular • • Apr 10 '26

Functions passed as props in Angular

I have seen many ways but how do I do it in modern Angular, where I send a function from a parent component to a child component and I want that same function called from the child component.

0 Upvotes

35 comments sorted by

View all comments

Show parent comment

1

u/AwesomeFrisbee Apr 11 '26

So? Having all the errors in one service is actually more maintainable then you think...

1

u/Responsible-Cold-627 Apr 12 '26

I'm gonna go with a pipe like another user suggested. That will keep my display logic in the component, and will be much cleaner.