init : getPersonne dans favoris

This commit is contained in:
Thomas Cardon 2022-03-02 16:48:32 +01:00
parent 829c8333f6
commit b3987b0255
3 changed files with 12 additions and 4 deletions

View file

@ -11,11 +11,19 @@ export class FavorisUserComponent implements OnInit {
personneConnectee : any;
constructor(private apiBackService : ApiBackService,private tokenService : TokenService) { }
constructor(private apiBackService : ApiBackService,private tokenService : TokenService) {
}
ngOnInit(): void {
this.personneConnectee = this.apiBackService.getPersonneById(this.tokenService.getCurrentUserId());
this.apiBackService.getPersonneById(this.tokenService.getCurrentUserId()).subscribe(
resp =>{
console.log(resp);
this.personneConnectee = resp;
}
);
console.log(this.personneConnectee);