DEV Community

Sohil Ahmed
Sohil Ahmed

Posted on

calling a web API in event handle is not working,

I've tried to setup a service to call data and also tried to create a method to call data but still facing the same error
I want to select a value from Lookup and on its value change I want to call a web API, I can log the event and edit values in my Form Model but cannot call a API, I'm getting a uncaught error at this.http and http declared in constructor as private Http: HttpClient in both caeses

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay