🔧 hhhhh
Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to
<h2>kkkkkk</h2>
.product-category {
margin-bottom: 5px;
a {
color: #adadad;
font-size: 12px;
}
}
private getWishlistItems() {
if (this.userService.isUser) {
this.wishlistService.getWishlistByUser().subscribe({
next: res => {
this.wishlists = res.data;
this.wishlist = this.wishlists.find(f => (f.product as Product)._id === this.product?._id);
console.log("this.wishlist",this.wishlist)
if (this.wishlist){
this.isWishlist=false
}else {
this.isWishlist=true
}
},
error: error => {
console.log(error);
}
}
);
}
}
private getWishlistItems() {
if (this.userService.isUser) {
this.wishlistService.getWishlistByUser().subscribe({
next: res => {
this.wishlists = res.data;
this.wishlist = this.wishlists.find(f => (f.product as Product)._id === this.product?._id);
console.log("this.wishlist",this.wishlist)
if (this.wishlist){
this.isWishlist=false
}else {
this.isWishlist=true
}
},
error: error => {
console.log(error);
}
}
);
}
}
🔧 hhhhh
📈 38.33 Punkte
🔧 Programmierung