Here I put all consoles and code below. I want to push array inside array, ex. in imagesArray has 3 arrays and now I push result array which has 2 arrays so first array is pushed properly in imagesArray but last array shows undefined and not pushed and gives error like imageArray undefined so how to push that? (I put consoles and codes below)
Before push object consoleimagesArray
result that i want to push result
after pushing console is like this
add-folder.component.ts
imagesArray : UploadedImages[] = []; dialogRef.afterClosed().subscribe(result => { if(result != '' && result != undefined && result != null){ for(var i = 1; i <= result.length ; i++){ this.imagesArray.push(result[i]); } } });
add-folder.component.html
<div> <mat-card *ngFor="let images of imagesArray" style="height : 100px;width : 100px"> <b>{{images.imageName}}</b> <b>{{images.filesize}}</b> </mat-card> </div>
var i=1
tovar i=0
in for loop and thisi <= result.length
to thisi < result.length
0
!