Awakening
Awakening

Reputation: 3795

angular mocke2e, how to send real ajax, not caught by httpbackend

angular mocke2e, how to send real ajax, not caught by httpbackend?
I may want to send both mock and real ajax in my development.

Upvotes: 0

Views: 26

Answers (1)

ngLover
ngLover

Reputation: 4578

You can passThrough any call came into httpBackend with its inbuilt method.

$httpBackend.whenGET('AnyCall.html').passThrough();

More reference link.

Upvotes: 1

Related Questions