ng-apimock icon indicating copy to clipboard operation
ng-apimock copied to clipboard

Global variables seems to only work with data and not file attribute

Open stefangoor opened this issue 7 years ago • 1 comments

Hi There,

Is is possible to use global variables in mock data when it comes from a file rather the data attribute?

In my scenario if I put the %%variable%% reference in a JSON object within the data: attribute it gets substituted correctly but if I have the same JSON object in a file that is loaded via the file: attribute it does not get substituted.

Is there a way to achieve this?

Many Thanks

stefangoor avatar Aug 30 '18 13:08 stefangoor

No, they don't seem to work that way. @mdasberg - any plans for this? PR's welcome?

jeremymwells avatar Apr 25 '19 16:04 jeremymwells