No provider for HttpClient! spec.ts code example Example: No provider for HttpClient! import { HttpClientModule } from '@angular/common/http';