Skip to main content
added 164 characters in body
Source Link

inIn order to send data from child component create output property decorated with output() in child component and in the parent bindlisten to the created event. emitEmit this event with new values in the payload when ever it needed.

@Output() public eventName:EventEmitter = new EventEmitter();

to emit this event:

this.eventName.emit(payloadDataObject);

in order to send data from child component create output property in child component and in the parent bind to the created event. emit this event with new values in the payload when ever it needed.

In order to send data from child component create property decorated with output() in child component and in the parent listen to the created event. Emit this event with new values in the payload when ever it needed.

@Output() public eventName:EventEmitter = new EventEmitter();

to emit this event:

this.eventName.emit(payloadDataObject);
Source Link

in order to send data from child component create output property in child component and in the parent bind to the created event. emit this event with new values in the payload when ever it needed.