Understand HttpClient is being replaced by HttpClientModule, so I'm going from HttpClient --> HttpClientModule as:
import { Injectable } from '@angular/core';
import
{
HttpClientModule,
//HttpClient, <-- original
HttpRequest,
HttpEventType,
HttpResponse,
} from "@angular/common/http";
@Injectable()
export class MyService
{
constructor(private http: HttpClientModule) { } // (private http: HttpClient) <-- original
public mymethod(
this.http.request(req).subscribe(...);
}
problem is on the last line,
this.http.request(req).subscribe(...);
yeah, http.
has nothing come up.