toggle like coeur=ok

This commit is contained in:
Thomas Cardon 2022-03-03 16:35:44 +01:00
parent d1a49dae32
commit a04197cceb
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

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