Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

181
Vistas
What is the Angular4 "Change" event trigger directive in Textarea

Here is one of the versions that I tried INSIDE TEXTAREA: (change)="dosomething($event)"

and it's not doing anything. What is the directive for "change"?

about 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

You should be using ngModelChange

   <textarea cols="25" [ngModel]="data" (ngModelChange)="doSomething($event)"></textarea>

LIVE DEMO

Update:

(change) event will work in textarea but it is triggered on blur and text changed inside the text area

DEMO

about 4 years ago · Santiago Trujillo Denunciar

0

(change) didn't work for me neither, try (input) it worked perfectly :

<textarea [(ngModel)]="mytext" (input)="autoGrow($event)"></textarea>
about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda