I'm trying to make a binding to an input field type file through ngModel on the typical Angular way like this:
<input type="file" id="fileUpload" [(ngModel)]="file">
and
files:any
My problem is that after I have chosen a file, the value of my variable files
is still undefined
Here an example with stackblitz: https://stackblitz.com/edit/angular-6mbdww