/ Question & Réponse / Angular 5+: Comment retarder une / toutes les requêtes HttpClient ? Angular 5+: Comment retarder une / toutes les requêtes HttpClient ? Angular 5+ // ANGULAR import { Injectable } from '@angular/core'; import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http'; // OBSERVABLES import { Observable } from 'rxjs/Observable'; import 'rxjs/add/operator/delay'; @Injectable() export class DelayInterceptor implements HttpInterceptor { intercept(request: HttpRequest, next: HttpHandler): Observable> { console.log(request); return next.handle(request).delay(500); } } Question & Réponse How can I add a attribute to a DOM element in JavaScript ? Javascript Développement front-end How to sort an array of integers correctly JavaScript ? Javascript Développement front-end How to create a directory using NodeJS ? Node.js Développement back-end How to display all files in a directory using Node.js ? Node.js Développement back-end How to scroll top position in page HTML with Jquery Jquery Développement front-end How to force page scroll position to top at page refresh in HTML Javascript, Jquery Développement front-end How to get random value out of an array ? PHP Développement back-end How to reload or refresh an iframe ? Javascript Développement front-end How to reload or refresh an iframe ? Javascript Développement front-end How to style the input type time CSS Intégration web How to Copy Text with javascript Javascript Développement front-end How Minify CSS with PHP PHP Développement back-end