Closed hoangha090399 closed 4 years ago
I will sure help you, in your last screen shot, a pop-up describe hide snapshotchange().map.... So, I am not able to see full method implementation can you please show me that code as well.
Thanks for the reply. and this is product.ts ( it is setproduct.ts in your video in youtube )
I look at original code and see this method doesn't look like yours at all. I've commented everything after valuechanges();
getFilterProducts(coll: string, filters) {
return this.afs.collection(this.getCollectionURL(coll), ref =>
ref.where('delete_flag', '==', 'N')
.where('tags' , 'array-contains', filters)
.orderBy('tags', 'desc')
).valueChanges();
// .snapshotChanges()
// .map(actions => {
// return actions.map(a => {
// const data = a.payload.doc.data();
// const id = a.payload.doc.id;
// return { id, ...data };
// });
// });
I have understood the problem.
Thank you very much for answering and supporting me.
Hello sir, I want to ask about the getFilterProducts section. I did the getFilterProducts part by myself But it didn't work. Hope you can help me. I am a student and my level is still weak. If it wrong,so you can ignore for me. I was tried Thanks (version in youtube) this is setproduct.ts page this is service.ts page
I tried the same way in the github file but error at "...data"