import { Component, Output, EventEmitter, Input } from '@angular/core'; @Component({ selector: 'esp-comment-component', templateUrl: './comment.component.html', styleUrls: ['./comment.component.scss'], }) export class CommentComponent { @Input() height: number | string = 256; @Output() updatedComment: EventEmitter = new EventEmitter(); onCommentChanged(event) { this.updatedComment.emit(event.target.value); } }