Carregar API de repouso angular de arquivo
<input type="file" id="avatar" (change)="onFileChange($event)" #fileInput>
Depressed Dingo
<input type="file" id="avatar" (change)="onFileChange($event)" #fileInput>