I am successfully able to bind source values. I am unable to bind the destination array.
The arrays are in the same format.
.html
<div class="section-select-profiles">
<label class="lbl-select-profiles">Select Profile(s):</label>
<mat-divider></mat-divider>
<dual-list [source]="source" [(destination)]="confirmed" height="300px"></dual-list>
</div>
.ts
source = [];
confirmed = [];
name: string;
constructor(
public dialogRef: MatDialogRef<UpdateCategoryComponent>,
@Inject(MAT_DIALOG_DATA) public data: any) {
this.source = data.source;
this.confirmed = data.selected;
}
Arrays:
selected:["ABC", "BCA", "CAB"]
confirmed : ["PQR", "RQP", "QPR"]
I am successfully able to bind source values. I am unable to bind the destination array.
The arrays are in the same format.
.html
.ts
Arrays:
selected:["ABC", "BCA", "CAB"]
confirmed : ["PQR", "RQP", "QPR"]