Skip to main content

Echo request

Makes sure that @ng-apimock/core will log the request to the console.

Usage

echoRequest(name, indicator);

Parameters

NameTypeDetails
namestringname of the mock
indicatorbooleanindicator to echo

Example

echoRequest('my-mock', true);

Executing this will log the request to the console for the mock matching the name my-mock.