Skip to content
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

Post api is not running when i submit the user add form #6

Open
habloo94 opened this issue Apr 3, 2020 · 1 comment
Open

Post api is not running when i submit the user add form #6

habloo94 opened this issue Apr 3, 2020 · 1 comment

Comments

@habloo94
Copy link

habloo94 commented Apr 3, 2020

core.js:6185 ERROR TypeError: Cannot read property 'post' of undefined
at BackendService.setUser (backend.service.ts:59)

this is my error in console

@habloo94 habloo94 closed this as completed Apr 3, 2020
@habloo94 habloo94 reopened this Apr 3, 2020
@habloo94
Copy link
Author

habloo94 commented Apr 3, 2020

constructor(private http: HttpClient) { }

error in this line

Error NullInjectorError: No provider for HttpClient!

constructor() { }
private http: HttpClient;

if i declare as above the route is loading but post api is not working

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

1 participant