Skip to content
/ DummyJSON Public

Get cart by user id didn't work #111

@LeQuoc-Dat

Description

@LeQuoc-Dat

Here my code

private userCartURL = 'https://dummyjson.com/carts/user/'

 getUserCart(userID: number): Observable<any>
    {
        return this.http.get<Cart>(`${this.userCartURL}${userID}`).pipe(
            tap(res =>
            {
                console.log(`${this.userCartURL}${userID}`)
            }
            )
        )
    }

The result :

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions