Top "Angular-http" questions

AngularJS tag for $http service is a core Angular service that facilitates communication with the remote HTTP servers via the browser's XMLHttpRequest object or via JSONP.

How to handle unauthorized requests(status with 401 or 403) with new httpClient in angular 4.3

I have an auth-interceptor.service.ts to handle the requests import {Injectable} from '@angular/core'; import {HttpErrorResponse, HttpEvent, HttpHandler, …

angular typescript angular-http angular-http-interceptors angular-httpclient
Angular 2 : No provider for ConnectionBackend

Get this "No provider for ConnectionBackend!" error when trying to use http with a promise. main.ts // ... tl;dr import …

angular angular-http
AngularJS using an interceptor to handle $http 404s - promise not defined error

I have an Angular app, for which I want to handle 404s form an API end point. The key components …

angularjs angular-http
Angular 4 Http POST not working

I hope everyone is doing great. I've recently started working with angular 4.4, i've been trying to post data to my …

javascript angular http-post angular-http angular-httpclient
Download a file from asset folder when clicking on a button

I am working on an angular2 project, I have a file in assets folder and I have created a button …

angular angular2-services angular-http
HTTP Post with no body in Angular

I'm wondering how to send an HTTP post request without a body (specifically in Angular). Here's what I'm doing now, …

angular http typescript angular-http
How to make an http call every 2 minutes with RXJS?

I have a service that will make a call to my rest service every 2 minutes. On my service I have …

angular rxjs angular-http
How to catch error in Observable.forkJoin(...)?

I use Observable.forkJoin() to handle the response after both HTTP calls finishes, but if either one of them returns …

angular promise rxjs angular-http angular-httpclient
Handling Expired Token From Api in Angular 4

I need help in handling expired token in my angular application. My api has the expired time but my problem …

angular token access-token angular-http
How to Show spinner for every HTTP requests in angular 5?

i am new to angular 5 . How to code a common function to show spinner for every HTTP request in angular 5.…

angular angular-http angular-http-interceptors angular-httpclient