Skip to content

id issue #138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SOG-web opened this issue Jul 11, 2020 · 1 comment
Closed

id issue #138

SOG-web opened this issue Jul 11, 2020 · 1 comment

Comments

@SOG-web
Copy link

SOG-web commented Jul 11, 2020

getProduct(id: number) {
this.productService.getProductsFromServer**(id)**.subscribe({
next: (productFromServer) => (this.products = productFromServer),
error: (err) => (this.errorMessage = err),
});
}
ERROR in src/app/products/product-detail.component.ts:31:47 - error TS2554: Expected 0 arguments, but got 1.

31     this.productService.getProductsFromServer**(id).**subscribe({
@DeborahK
Copy link
Owner

Did we resolve this in the discussion group for the Angular: Getting Started course? I'm going to close this issue. Please reopen it if this was not resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants