GPS-Mobile-Tracking-App icon indicating copy to clipboard operation
GPS-Mobile-Tracking-App copied to clipboard

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

Open habloo94 opened this issue 4 years ago • 1 comments

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 avatar Apr 03 '20 02:04 habloo94

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

habloo94 avatar Apr 03 '20 03:04 habloo94