How to display list of all other users with details from firebase excluding currently logged...

Discussão em 'Angular' iniciado por Magellan, Novembro 16, 2024.

  1. Magellan

    Magellan Guest

    This code currently displays all users, including the logged users, accessing this data for display (Search in the future).

    Typescript:

    public ngOnInit(): void {
    if (this._auth$.authenticated) {
    //=================================================//
    // Get all users Except current user
    //=============================================//
    this.users = this.all_data;
    console.log(this.users);
    }
    }


    HTML:

    <div class="col-sm-6 offset-md-3">
    <section class="centered-form">
    <img id="displayImage" [src]="user.ProfileImage.image" alt="profile Image">
    <h5>Full Name: {{user.profile.fullName}}</h5>
    <p>
    <br/>Age: {{user.profile.age}}
    </p>
    </section>
    </div>

    Continue reading...

Compartilhe esta Página