dragAndUpload.ts
export class DragAndUploadComponent implements OnInit {
@Input() filesData: any;
ngOnChanges(changes: SimpleChanges): void {
console.log(changes.filesData.currentValue);
console.log(changes.filesData.currentValue.files);
}
}
in console: Object { } //when this object expand its shows like below
Object{
"files": {
"image": [
"image_link"
],
"video": [
"video_link"
]
}
}
}
and the console of the (changes.filesData.currentValue.files)
is undefined
HOW CAN I SOLVE THIS ISSUE
Thanks in Advance