2022-01-18 17:12:04 +01:00
|
|
|
import { Component, OnInit } from '@angular/core';
|
2022-02-16 19:18:24 +01:00
|
|
|
import { MembreService } from 'src/app/services/membre.service';
|
2022-02-25 09:52:06 +01:00
|
|
|
|
2022-01-18 17:12:04 +01:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-page-account',
|
|
|
|
templateUrl: './page-account.component.html',
|
|
|
|
styleUrls: ['./page-account.component.scss']
|
|
|
|
})
|
|
|
|
export class PageAccountComponent implements OnInit {
|
2022-02-16 19:18:24 +01:00
|
|
|
public listMembres: any[];
|
2022-01-18 17:12:04 +01:00
|
|
|
|
2022-02-25 09:52:06 +01:00
|
|
|
constructor(private membreService: MembreService) {
|
2022-02-16 19:18:24 +01:00
|
|
|
this.listMembres = [];
|
|
|
|
}
|
2022-01-18 17:12:04 +01:00
|
|
|
|
|
|
|
ngOnInit(): void {
|
2022-02-25 09:52:06 +01:00
|
|
|
this.membreService.getMembresByTeamId()?.subscribe((membres: any[]) => {
|
|
|
|
console.log(membres);
|
2022-02-16 19:18:24 +01:00
|
|
|
this.listMembres = membres;
|
2022-01-18 17:12:04 +01:00
|
|
|
|
2022-02-25 09:52:06 +01:00
|
|
|
});
|
|
|
|
}
|
2022-01-18 17:12:04 +01:00
|
|
|
}
|