To emit any click from child to parent we can make use of @output in the child and in parent html we can listen to that event using the way shown below
<app-item-output (newItemEvent)="addItem($event)">
in parent we can write method addItem($event) and do our work but is there any way to convert it into stream so that i can use it in combination with other observable.
One way I can think of now is having a subject in parent and then emitting a value like below to create a stream in parent
addItem($event) {
subject.emit()
}
But if we have any direct way to convert the event emitted from child into observable that would be better.