阅读背景:

从WebAPI向AngularJs返回整数

来源:互联网 

I'm new to angular so I apologise is this is a dumb question. I have a WebAPI method that creates data. I would like to return an integer from this method that indicates the new resource's id. If I return the whole object it works in my angular controller, yet when I only return the int I get an object with a prototype and I can't seem to get the id. Fiddler shows my integer value in the TextView, so the answer is there, its just a matter of reading it with angular (javascript).I'm new to angular so I apologise is this is a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: