【发布时间】:2022-01-21 02:02:25
【问题描述】:
我正在使用firebase在网站上注册链接,我正在尝试传递uuid来创建子集合,但是没有成功,那会是什么??
constructor(private af: AngularFirestore) {}
async add(urls: Urls, uuid: string): Promise<void> {
await this.af.collection(`${this.collection}/${uuid.getItem('idCustomer')}/menu`).add({ ...urls });
await this.getUrls(`${this.collection}/${uuid.getItem('idCustomer')}/menu`);
}
【问题讨论】:
标签: angular typescript firebase