ngMockE2E.$httpBackend.whenRoute()

whenRoute(method, url);

Creates a new backend definition that compares only with the requested route.

Parameters

Param Type Details
method string

HTTP method.

url string

HTTP url string that supports colon param matching.

Returns

requestHandler

Returns an object with respond and passThrough methods that control how a matched request is handled. You can save this object for later use and invoke respond or passThrough again in order to change how a matched request is handled.

doc_AngularJS
2016-03-29 16:12:12
Comments
Leave a Comment

Please login to continue.