Child.component.html

<fieldset>

  <legend>
    <h1>Child Component</h1>
  </legend>

  <p>Child Message to send to parent: {{ message }}</p>

  <input type="text" [(ngModel)]="message" (keyup.enter)="sendMessage()" />

  <button (click)="sendMessage()">Send to Parent</button>

</fieldset>