I should display the selected file name in label tag instead of displaying in the input tag. Can you please help me to achieve this. Thanks in advance
My code looks like below,
<div *ngFor='let item of list; let i = index'>
<input #fileInput type="file" />
<button type="button" (click)="fileInput.click()">trigger</button>
<button type="button" (click)="reset(fileInput, i)">Reset</button>
</div>
I have tried changing input tag to label but it's not working. Could you please help me to achieve it. Thanks in advance.