Stuck at deleting parent pushed key by value/childkey

前端 未结 1 743
臣服心动
臣服心动 2020-12-22 11:31

I want to delete a parent pushed key by value/childkey:

export class FaqsPage {
  qS: Observable;
  ques = \'\';
  ans = \'\';

constructor(priva         


        
相关标签:
1条回答
  • 2020-12-22 12:17

    I hope you are using angularfire2

    this.qS = this.db.list('table/faq').snapshotChanges().map(changes => {
      return changes.map(c => ({ key: c.payload.key, ...c.payload.val() }));
    });
    

    this will return the qS with key

    0 讨论(0)
提交回复
热议问题