python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Is there anything wrong using the HttpClient in programmer defined classes in Angular?
I wonder whether I could use the provided HttpClient in my classes. For example, should we avoid this:
export class Order {
constructor(private http: HttpClient,...){...}
save(){
retur...
Invader
Votes: 0
Answers: 1
How to prevent the display in the logs of error when using angular httpClient.get?
I've the following method:
retrieveAccessToken() {
this.httpClient
.get(environment.backendUrl + 'accounts/refresh-token')
.subscribe({
next: (response) => {
thi...
J4N
Votes: 0
Answers: 3
Angular HttpClient "Unknown Error" with service worker and long-running request
I make an HTTP call using the Angular HttpClient. The request takes ca. 8 minutes to complete and works fine without service worker.
But when activating the Angular service worker, the request is canc...
blackcomb
Votes: 0
Answers: 1
Subscriptions to HTTP GET Requests No Longer Return Properly Typed Value in RxJS 7.5
So, here is my simple GET request:
async getInspectionForm(): Promise<Observable<InspectionSummaryFormField[]>> {
let params = new HttpParams();
params = params.append('InspectionType', th...
Elliott Ives
Votes: 0
Answers: 0