Is there a way to get the previous(last) value of a field on ngModelChange? What I have goes something like this
HTML
<input type="text" [(ngModel)]="text" (ngModelChange)="textChanged($event)">
Handler
private textChanged(event) {
console.log('changed', this.text, event);
}
What I get is
changed *newvalue* *newvalue*
Of course I can keep the older value using another variable, but is there a better way?