Hello, I’m trying to change firestore values checking boxes on Ionic 5, but don’t know how to deal with it, i need help, thank you.
That’s my code
//TS
isSubscribed($event, id) {
console.log("Value checkbox: ", $event.target.value, id)
this.db.collection(‘users’).doc(id).set({
subscribed: $event.target.value
})
}
//HTML
{{ subscriber.fullname }}<ion-label>Subscribed</ion-label> </ion-item>
1 post - 1 participant