Consider this simplified situation, we have:
Parent component template (selector: 'parent'):
<div class="wrapper">
<input (blur)="onBlur()"/>
<ng-content></ng-content>
</div>
Child component template (selector: 'child'):
<div>{{ valueEmittedFromParentInputOnBlurEvent }}</div>
Usage, somewhere on a page:
<parent>
<child></child>
</parent>
I'd like to handle valueEmittedFromParentInputOnBlurEvent
in my child
component after it was emitted in onBlur() event.
Please, help me if you can :)
You can use a service or provide an Input to your Child Component.