angularjs - javascript component does not have a method named "available" when using transformrequest -
I am learning angular and I have a request object that is of this form:
< Code> Var data = {destinationProjectId: proj.Id, item: $ scope.selections // it is an array}$ scope.selections gives me back the real javascript object, the endpoint Array hopes that only selection ID will be the same. I know that I can do something like this:
var newItems = []; Select from $ scope. EEC (oBJ) = & gt; {New Etimespush (PerseInt (OBJIID);}); Send with $ http and <$> but what am I trying to do:
$ http ({method: "POST", url: url) , Data: $ scope.selections, transformRequest: (Data, Header) = & gt; {Var payload = []; var s = & lt; any & gt; data.ite; s.forEach ((o) = & gt; ; {Payload.push (parseInt (o.Id)}}}); return payload;});
In the firebug console, I'm getting:
[exception ... "Javascript component does not have a method:" Available "is not a Javascript component Naming a method: When calling "available" method: [nsIInputstream :: available] "nsresult:" 0x80570030 (NS_ARROOr_XPC_JSOBJECEHAS_NO_AFNCCD) "
Any ideas about what's going on? Thank you.
[exception ... "JavaScript component does not have a method:" available " "Javascript component is not named:" available "when calling 'method': [nsIInputstream :: available]" nsresult: "0x80570030 (ns_arrow_xpc_jsobjccths_no_fncnd)"
This is an error Some Firefox plugins Your code does not have an API by Firefox for
nsIInputstream plugins (ref :) :)
Check update Yrbg or other plug-in
Comments
Post a Comment