What is the best way to add an delay for a ngModelChange
property binding?
Example: I want to call a function in an input field:
<input [ngModel]="model" (ngModelChange)="func()">
The model update on every input change.
Was func()
just called, it should, although the model was changed, be possible to call func()
again only after for example 3 seconds.