Merge branch 'dev' into Romain

This commit is contained in:
Romain Verger 2022-03-03 17:16:54 +01:00
commit 58332161ae
3 changed files with 4 additions and 4 deletions

View File

@ -35,8 +35,8 @@ export class CardRestoComponent implements OnInit {
}
onClickLike() {
console.log('click');
//this.isLiked = !this.isLiked;
this.clickLike.emit(this.isLiked);
this.restaurant.restauLike = !this.restaurant.restauLike;
this.clickLike.emit(this.restaurant.restauLike);
}
}

View File

@ -45,10 +45,9 @@ export class RestoPageComponent implements OnInit {
}
onEventLike(){
this.apiBackService.restoLiked$.next('');
this.apiBackService.restoLiked$.next(true);
console.log(this.apiBackService.restoLiked$);
}

View File

@ -69,4 +69,5 @@ export class ApiBackService {
getPersonneById(id: any) {
return this.httpClient.get<User>(`${environment.apiUrl}/user/${id}`);
}
}