I'm currently working on an Angular-Firebase Ionic app and running into a problem when trying to retrieve the current user's posts from Firebase. My main goal is to fetch the current user's posts.
Below is the code snippet:
postss: any;
constructor(
private afAuth: AngularFireAuth,
) {
this.postss = this.afDB.list('users/posts').valueChanges();
this.afAuth.authState.subscribe(user => {
}
Here's the corresponding HTML:
<ion-list no-lines>
<ion-card *ngFor="let post of posts ">
<li><ul>{{post}} </ul></li>
Shown below is a screenshot: