我在Firestore中创建了一个集合"Cuisniers“和一个SubCollection "Produits”。我能够从代码中创建文档和字段。
我还可以从集合"Cuisiniers“中检索数据。
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
// We MUST import both the firebase AND firestore modul
我正在用angular 6和firebase做crud,在它的firestore数据库中,我正在通过一个表单编辑一些数据,应用程序应该可以工作,但编译器给了我这个错误:
ERROR in src/app/Components/Posts/dashboard-posts/dashboard-posts.component.ts(113,37): error TS2339: Property 'titulo' does not exist on type '{}'.
src/app/Components/Posts/dashboard-posts/dashboard
如何使用AngularFire2删除子集合?在我的component.ts文件中有以下与依赖项有关的内容。id in updateUser()是通过客户端操作传递的。我在控制台中没有收到任何错误,但是firestore也没有删除数据:
import { Component, OnInit} from '@angular/core';
import { AngularFirestore, AngularFirestoreDocument, AngularFirestoreCollection } from 'angularfire2/firestore';
i