I have an Angular parent component that creates an array containing several child components based on a value (e.g., 1 ParentComponent creates 10 ChildComponents). The ChildComponent has HTML that displays several buttons, including a delete button. The delete button while make the child component delete itself.
After deleting a ChildComponent, how should I go about notifying the parent of the change? After the deletion the parent still contains the deleted object in it's ChildComponents array. I've seen posts about using an Output EventEmitter, but is it possible to do this without an EventEmitter?
EventEmitter
, you can pass callback functions into child components just using@Input
– Frank ModicaEventEmitter
is the best solution. – joh04667