httpbackend
httpbackend copied to clipboard
Advanced respond options with variables
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.