I am using HttpClient and it doesn't make a network request, there are no errors so I don't know what is wrong.
postFile(file: FileUpload) {
console.log('posting file');
return this.http.post(this.apiRoot + '/api/file', file, this.httpOptions)
.pipe(
catchError(this.handleError('postFile', []))
);
}
app.module
import { HttpClientModule } from '@angular/common/http';
// ...
imports: [
HttpClientModule
],