toggle like coeur=ok
This commit is contained in:
parent
d1a49dae32
commit
a04197cceb
|
@ -35,8 +35,8 @@ export class CardRestoComponent implements OnInit {
|
||||||
}
|
}
|
||||||
onClickLike() {
|
onClickLike() {
|
||||||
console.log('click');
|
console.log('click');
|
||||||
//this.isLiked = !this.isLiked;
|
this.restaurant.restauLike = !this.restaurant.restauLike;
|
||||||
this.clickLike.emit(this.isLiked);
|
this.clickLike.emit(this.restaurant.restauLike);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,10 +45,9 @@ export class RestoPageComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
onEventLike(){
|
onEventLike(){
|
||||||
this.apiBackService.restoLiked$.next('');
|
this.apiBackService.restoLiked$.next(true);
|
||||||
console.log(this.apiBackService.restoLiked$);
|
console.log(this.apiBackService.restoLiked$);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -71,4 +71,5 @@ export class ApiBackService {
|
||||||
getPersonneById(id: any) {
|
getPersonneById(id: any) {
|
||||||
return this.httpClient.get<User>(`${environment.apiUrl}/user/${id}`);
|
return this.httpClient.get<User>(`${environment.apiUrl}/user/${id}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue