Questions
heshaniheshaniasked 2 months ago
when i add  privatehttp: HttpClient  inside the constructor , html page not render, why is this happen
1

1 Answers

Accepted
codegenlabcodegenlabanswered 2 months ago
check in your app module you have import the HttpClientModule,
import { HttpClient, HttpClientModule } from '@angular/common/http';



imports: [

    HttpClientModule

  ],
1