Gestion des erreurs angulaires

import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-parent',
  templateUrl: './parent.component.html',
  styleUrls: ['./parent.component.css']
})
export class ParentComponent implements OnInit {

  message: string;

  constructor() { }

  ngOnInit(): void {
  }

  getChildData($event) {
    this.message = $event
  }

}
Powerful Pygmy