How can I input file name in table for each time when I import some file?
I have input and button that actualy start event on that input on click.
<button class="btn-main" (click)="ElementFileInput.click()">Import </button>
<input #ElementFileInput (change)="importElement($event)" type="file" " style="width: 0px; height: 0px; overflow: hidden;" />
Also, in my ts I have defined that function, and extracted name value from file.
TS function:
importElement(event: any) {
this.values = event.target.files[0].name;
And html part where I show my file name:
<label style="color: blue">{{values}}</label>
Function is working and when I input file, i get name written in label.
But I want to make table that will list file names for every file that I import, not just once. How can I do that?