In pop-up menu with check-boxes:
this.itm = [
{ name: 'name1', checked: false },
{ name: 'name2', checked: false },
{ name: 'name3', checked: false },
{ name: 'name4', checked: false },
{ name: 'name5', checked: false },
{ name: 'name6', checked: false },
{ name: 'name7', checked: false },
];
}
if I have some updated array: private arr: any[] = [];
with particular content, retrieved from database record with back-end echo for example, what is a proper way to set this values in check-boxes pop-up menu to true as by default, to see this names already checked with opening:
name3
name5
name7
Aucun commentaire:
Enregistrer un commentaire