Angular 6 - How to notify child component about @output finishing job?

225 Views Asked by At

take simple 'list' component and 'list-item component'. I will click 'update' @output function at 'list-item' component, but since emitter is 'void' I have no way of getting information that item was saved or not, and 'list-item' detail can be closed.

In angular 1, I can just bind & callback returning promise, and do detail close on .then() inside Child component. How can I reach same goal of letting one of child components know that it was saved?

0

There are 0 best solutions below