I’m trying to set and get some TODO notes, but the problem is i’m sharing it with all the users, and it ISN’T SAVING on my firestore database, don’t know why, but it remains. My model is:
and my add and get method is:
idea: Idea = {
name: '',
note: '',
date: new Date().getTime()
};
ADD:
this.afs.collection(`users/${this.user.getUID}/ideas`).add(this.idea)
GET_ALL:
this.afs.collection(`users/${this.user.getUID}/ideas`)
I’m doing well my modal? i need to set some Id on every idea? Thank you so much