Detecting change of ion-textarea with ionic2

1

I'm developing an app and I needed to detect the ionChange or keyUp of an ion-textarea in ionic 2.

Below are examples that work.

  

my-file.ts

atualizar() {
 console.log('Atualizou :)');
}
  

My .html

<!-- FUNCIONA -->
<ion-checkbox (ionChange)="atualizar()"></ion-checkbox>
<!-- Não funciona -->
<ion-textarea (ionChange)="atualizar()"></ion-textarea>

I looked in the official documentation and found nothing can help me?

    
asked by anonymous 21.08.2016 / 04:35

1 answer

1

I got people, I used the directive of angular itself.

Below is an example

<ion-textarea (keyup)="atualizar()">

Source:

    
21.08.2016 / 04:41