export class ParentComponent implements OnInit {
// Text that will be sent to child, and binded with []
inputText!: string;
// Message set from @Output method `onMessageReceived`
receivedMessage: string = '';
constructor() {}
ngOnInit() {}
/**
* Method invoked by `@Output` from child
*/
onMessageReceived(message: string) {
this.receivedMessage = message;
}
}