从Firestore获取ID参数

时间:2019-02-27 19:33:41

标签: ionic-framework ionic3 google-cloud-firestore ionic4

我在Ionic 4中具有以下功能,该功能从另一个页面获取ID,该ID用于存储在Firestore中的某些数据

ngOnInit() {
     this.id = this.router.snapshot.paramMap.get('id');
     console.log(this.id);
}

它可以正常工作并在控制台中显示ID,我的问题是如何获取存储在Firestore中的ID的参数,我可以在我的应用程序中显示它们吗?

0 个答案:

没有答案