mercredi 14 septembre 2022

angular material table post selected items to modal

How can I pass a list of selected items to dialog? When I pass 'selection.selected' I get [object Object]. I would like to display the selected items as a list in the dialog.

openDialog() {
this.dialog.open(DialogDataExampleDialog, {
  data: {
    selected: this.selection.selected,
  },
});

}




Aucun commentaire:

Enregistrer un commentaire