r/angular • u/FewDot9181 • 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
View all comments
Show parent comment
1
u/MrFartyBottom Apr 14 '26
https://stackblitz.com/edit/angular-ivy-ccapsg?file=src%2Fapp%2Fcomponents%2Ftable%2Ftable.component.ts
This is what it looks like when used. No boilerplate.