You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
It would be useful for the "respond" method of the httpBackend.when(...) calls to support promises.
Currently the respond method accepts either:
a set of static data to be returned; or
a function that can return an array containing response status (number), response data (string), response headers (Object), and the text for the status (string).
The limitation occurs when wanting to use $httpBackend for backend-less development of applications that use the $http service, with scenarios where the "fake" data can only be returned by asynchronous operations (e.g. calls to indexeddb).