My background API is to generate Excel. But when I set parameter passing in Angular, passing parameters in the console does not work. How do I pass parameters for blob-type requests?
ExportMyTicket():Observable<Blob> {
let params = new HttpParams();
//Parameter passing failure;
params.append('myParam', '111');
return this.http.get<Blob>(`${this.exportExcelUrl}`,
{ params, responseType: 'blob' as 'json' })
}
I tried to pass the parameters on the front end, but I couldn't pass them, no matter how I set the parameters.