Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

175
Views
¿Qué es la directiva de activación del evento "Cambiar" de Angular4 en Textarea?

Aquí está una de las versiones que probé DENTRO DE TEXTAREA: (cambio) = "hacer algo ($ evento)"

y no hace nada. ¿Cuál es la directiva para el "cambio"?

about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Deberías estar usando ngModelChange

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

DEMO EN VIVO

Actualizar:

El evento (change) funcionará en el área de texto, pero se activa cuando se desdibuja y el texto cambia dentro del área de texto.

MANIFESTACIÓN

about 4 years ago · Santiago Trujillo Report

0

(cambiar) tampoco funcionó para mí, intente (ingresar) funcionó perfectamente:

 <textarea [(ngModel)]="mytext" (input)="autoGrow($event)"></textarea>
about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!