1) I have a child component (CounterComponent) that emits an event using @Output 2) The child component also has an Input parameter callBackCancelled. 3) The parent component (AppComponent) sets the callBackCancelled value to "true" but in the child component that value is still undefined.
See the plunker sample https://plnkr.co/edit/2vnTUEDyBKT59GDTvkEJ
callbackFunction(e) {
alert('emitting event from child callback button component');
this.callback.emit(e);
alert('Now in child component, this value should be true, but it is: ' + this.callBackCancelled);
}
Can someone help?