init : getPersonne dans favoris
This commit is contained in:
parent
829c8333f6
commit
b3987b0255
3 changed files with 12 additions and 4 deletions
|
|
@ -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);
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue