Skip to content

Unable to set Destination Values #109

Description

@shaikhspear16

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"]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions