I can't find simple and easy solution how to detect change in my textfield.
I dont want to use (keypress)
because the user will sometimes paste values into the field. (onchange) for example is working only when user will blur field. And I want to detect change immediately.
What is the easiest angular js $watch equivalent?
use ngModelChange
input id="form_name" [(ngModel)]="quantity" (ngModelChange)="calculateTotal($event)"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With