<input type="text" (blur)="onBlur($event)" />
export class AngularComponent {
public onBlur(event: any) {
const value = event.target.value;
// Do other things...
}
}
In this code snippet, what is the proper TypeScript type for the event
parameter within the onBlur
method? Is there a way to avoid using the any
type here?