feat: add header component with navigation and cart functionality

This commit is contained in:
Jesus Navalon
2026-07-12 19:27:27 +02:00
parent 78c3684c18
commit 282bcc9d76
7 changed files with 119 additions and 1 deletions
+2
View File
@@ -20,6 +20,8 @@ export class CartService {
const response = await firstValueFrom(
this.http.post<AddCartResponse>(`${API_BASE_URL}/cart`, request)
);
//Note: can return always 1 because server has not SameSite=None. This will be taken as a third cookie, and the browser can ignore it.
this.setCount(response.count);
return response.count;
}