I'm currently utilizing angularFire to establish a connection between my web page and my database. My objective is to showcase all the users saved in my firebase database in a list format on a specific page. The users are stored in the following manner based on their email:
users
|_email:name
|
|_email:name
|
|_email:name
|
|_...
The issue I am encountering is that I am unsure of how to retrieve all the users and place them into an Array.
It seems like it might be related to using .list()
, but with this function, I would need to categorize users differently, for example:
user
|_key1
| |_email:value
| |_name:value
|_key2
| |_email:value
| |_name:value
|_...
I aim to store this information in my credentialsArray
utilizing the Credential
model, so that I can display it within a table:
this.credentialsArray.push(new Credential('name', 'email'));
This organization helps me list it out as follows:
<tr *ngFor="let item of credentialsArray">
<td>{{ item.name }}</td>
<td>{{ item.email }}</td>
</tr>
Any guidance on how I can accomplish this task?