Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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;
  }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #angular #input #change #event #datatype #typescript
ADD COMMENT
Topic
Name
9+9 =