J'ai trouvé this article comment créer un retard de serveur artificiel lors de l'utilisation $ httpBackend pour les données moqueuses.
Y a-t-il un moyen de faire cela par simulation? Peut-être quelque chose comme:
$httpBackend
.whenGET(/\/my\/endpoint$/)
.respond(data, 2000);
OU
$httpBackend
.whenGET(/\/my\/endpoint$/)
.withDelay(2000)
.respond(data);