ajout getPersonnById ds service + ds favoris
This commit is contained in:
parent
bea5442dea
commit
7ac59372b2
5 changed files with 44 additions and 12607 deletions
|
|
@ -1,4 +1,6 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
import { ApiBackService } from 'src/app/services/api-back.service';
|
||||
import { TokenService } from 'src/app/services/token.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-favoris-user',
|
||||
|
|
@ -7,9 +9,16 @@ import { Component, OnInit } from '@angular/core';
|
|||
})
|
||||
export class FavorisUserComponent implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
personneConnectee : any;
|
||||
|
||||
constructor(private apiBackService : ApiBackService,private tokenService : TokenService) { }
|
||||
|
||||
ngOnInit(): void {
|
||||
|
||||
this.personneConnectee = this.apiBackService.getPersonneById(this.tokenService.getCurrentUserId());
|
||||
console.log(this.personneConnectee);
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue