Get values from a dynamic checkbox list
问题 See my html : <ion-item ion-item *ngFor="let item of items"> <ion-label>{{ item.name }}</ion-label> <ion-checkbox color="secondary"></ion-checkbox> </ion-item> My .TS : this.database.executeSql("SELECT * FROM check_item", []).then((data) => { this.items = []; if (data.rows.length > 0) { for (var i = 0; i < data.rows.length; i++) { this.items.push({ id: data.rows.item(i).id, name: data.rows.item(i).name }); } } }, (error) => { console.log("ERROR: " + JSON.stringify(error)); }); I would like to