Set variables
Makes sure that @ng-apimock/core will add or update the variables.
Usage
setVariables(variables);
Parameters
| Name | Type | Details |
|---|---|---|
| variables | object | the key/value object |
Example
setVariables({
now: new Date().getTime(),
hello: 'hi'
});
Executing this will add the variables with:
- key
nowand valuethe current date time - key
helloand valuehi
These variables will be used to interpolated with the mock response.