My goal is to retrieve data from a Firebase RDB in the data service by using the following function:
this.getOrgId()
.subscribe((orgId: string) =>
localStorage.setItem('orgId', orgId));
getOrgId() {
return this.db.list(/users/${this.uId}/organization/.json);
}
Unfortunately, I encountered the error message: Property 'subscribe' does not exist on type 'AngularFireList'.ts(2339)
Is there anyone who has suggestions on how to resolve this issue? I am relatively new to JavaScript and TypeScript.
Thank you for any assistance provided.