javascript - 从 Firebase Angular 5 访问 id 接收所有数据
问题描述
我在 firebase 中有一个集合,其中填充了许多与其他集合不同的 id。我可以访问这些 id 之一,并从中尝试访问另一个集合中的该 id 并获取该信息。
我在这里有我的身份证:
export class PvPropertyComponent implements OnInit {
@Input() viewing: TenantViewingModel;
private property;
private propertyId;
constructor() {
}
ngOnInit() {
this.propertyId = this.viewing.property_id;
console.log(this.propertyId)
}
}
其中记录:
Q1sHTyPDSnxCQOpZ14jU (which is the id)
我从我的“查看”集合中获取此 ID,但不想使用此 ID 访问其在 Firebase 上的“属性”集合中的内容。有人知道该怎么做吗?
解决方案
推荐阅读
- qt - 将渲染目标添加到 QOpenGLWidget 的默认帧缓冲区
- javascript - 卡在加载屏幕上 (HTML)
- php - Monolog 的 yaml 配置中无法为 native_mailer 设置 content_type?
- react-native - react-navigate stackNavigator 回溯到与那里不同的屏幕
- java - Java Spark 禁用 Hadoop 发现
- react-native - React-native 需要任何文件
- angular - HttpClient 拦截器强制请求重复
- javascript - 表单内的两个冲突按钮
- django - Django 静态文件 - 更改 URL
- javascript - 如何在 openLayer 地图中加载本地 gpx 文件?