Como observar as alterações do elemento de entrada no conteúdo ng

Como chamar a função do componente pai quando o componente filho observou alterações de entrada?

A seguir está a estrutura HTML.

# app.comopnent.html
<form>
  <textbox>
    <input type="text">
  </textbox>
</form>

# textbox.component.html
<div class="textbox-wrapper">
  <ng-content>
</div>

Restrições são como seguintes.

O TextboxComponent possuing-content e precisa projetarinput elemento para ele.Emita um evento no TextboxComponent quandoinput elemento é inserido algo.Não quero fazerinput elemento para ter mais atributos, por exemplo<input type="text" (input)="event()">.

Eu estava escrevendo código, mas não consigo encontrar uma solução ...

# input.directive.ts
@Directive({ selector: 'input', ... })
export class InputDirective {
  ngOnChanges(): void {
    // ngOnChanges() can observe only properties defined from @Input Decorator...
  }
}

# textbox.component.ts
@Component({ selector: 'textbox', ... })
export class TextboxComponent {
  @ContentChildren(InputDirective) inputs: QueryList<InputDirective>;
  ngAfterContentInit(): void {
    this.inputs.changes.subscribe((): void => {
      // QueryList has a changes property, it can observe changes when the component add/remove.
      // But cannot observe input changes...
    });
  }
}

questionAnswers(5)

yourAnswerToTheQuestion