Closed joseserrano15 closed 1 year ago
Hi @joseserrano15,
currently that is not possible if you use angular template-driven form, but it can be if you use it with FileUpload Control instance. Here is example of it.
class: `public readonly fileUploadControl = new FileUploadControl();
constructor() {
this.fileUploadControl.discardedValueChanges.subscribe((files: File[]) => { console.log(deleted files:
, files) })
}
`
html:
<file-upload [(ngModel)]="fieldName" [control]="customFileUploadControl"></file-upload>
It worked perfectly! Thank you.
How can I detect when an element from the list is deleted? or when the span is clicked? I Use template-driven form