Response javascript from server, field coming with a method / function?

0

I have a service that intercepts the response of the bank and sends out pro angular. Some responses from the server come with an example object with a $ id: function () field, but in the response the id comes right, when I get that response and play it in an array in the id field it comes' function () 'instead of the result that was in the response, why this?

    
asked by anonymous 22.05.2015 / 03:05

1 answer

0

Would it be a code injection (JS)?

If you need to run "eval":

eval("(function(){ alert('Hello!'); })()");

link

link

Hugs!

    
18.08.2015 / 14:19