我可以在Firebase中成功保存文档。
我现在要显示特定存储文件夹中包含的所有文档
但是文档仅指定如何获取特定文档:
@Component({
selector: 'app-root',
template: `<img [src]="profileUrl | async" />`
})
export class AppComponent {
profileUrl: Observable<string | null>;
constructor(private storage: AngularFireStorage) {
const ref = this.storage.ref('users/davideast.jpg');
this.profileUrl = ref.getDownloadURL();
}
}
答案 0 :(得分:0)
最后,我将链接文档保存在数据库中以重试信息。
SaveDoc() {
const Patientid = this.patientid;
const name = Date.now().toString();
const newDoc = new Doc(name, Patientid, this.url);
console.log(this.url);
this.docsService.CreatePpsDoc(newDoc);
}