httpbackend icon indicating copy to clipboard operation
httpbackend copied to clipboard

Advanced respond options with variables

Open phenomnomnominal opened this issue 9 years ago • 0 comments

if I do something like

var data = require('foo.json');
whenGet( ... ).respond(function () {
    return [200, data, { some: 'header' }];
});

This is stringified and send to the client, where data obviously doesn't exist. I'm going to work on a PR to fix this.

phenomnomnominal avatar Mar 01 '16 23:03 phenomnomnominal