Child.component.ts 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15export class ChildComponent implements OnInit { @Input() parentInput: string = ''; @Output() childOutput = new EventEmitter<string>(); message: string = ''; constructor() {} ngOnInit() {} sendMessage() { this.childOutput.emit(this.message); } } Was this page helpful? Thanks for your feedback! Thanks for your feedback! Help us improve this page by using our feedback form.