angular input change event datatype typescript code example
Example: angular input change event datatype typescript
public onChange(event: Event): void {
if ((event.target as HTMLInputElement).files && (event.target as HTMLInputElement).files.length) {
const [file] = event.target.files;
}
}