【发布时间】:2022-09-30 23:05:02
【问题描述】:
打字稿
public Patients: Observable<any>;
constructor(private db: AngularFirestore) {
this.Patients = this.db.collection(\'Patients\').valueChanges();
// get data from firebase :
ngOnInit(): void {
this.Patients.subscribe((response) => {
this.prepareData(response);
this.console.log(response);
});
}
// in this section use for add data to apexcharts
prepareData(patients) {
patients.forEach((patient) => {
});
}
-
“firebase 时间戳”是怎样的?您可以在问题中包含这样的字符串吗?
-
firebase 时间戳 // Object { seconds: 1612890000, nanoseconds: 0 } 我想改成这个 2019-07-07
标签: angular