1

I have an error when I use private Rest service in constructor, then my HTML code is not working. I want the solution of this error.

re.mjs:9171 ERROR Error: Uncaught (in promise): NullInjectorError: R3InjectorError(AppModule)[RestService -> HttpClient -> HttpClient -> HttpClient]: 
  NullInjectorError: No provider for HttpClient!
NullInjectorError: R3InjectorError(AppModule)[RestService -> HttpClient -> HttpClient -> HttpClient]: 
  NullInjectorError: No provider for HttpClient!
Khaled Ayed
  • 1,121
  • 3
  • 12
  • 29
  • 2
    Does this answer your question? [No provider for HttpClient](https://stackoverflow.com/questions/47236963/no-provider-for-httpclient) – pzaenger May 08 '23 at 11:21

0 Answers0