Hi,
I am new to angular JS,so can you please tell me how to pass object as a parameter to get request method of web api in angular js.
Thanks
Indu
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Guest UserPosted Aug 14, 2014, 8:13 PM
console.log('success');
});
i'm passing JSON obect {obj:1,obj2:2} alongwith. Now at server side there should be code to recieve it, e,g.,
[HttpGet]
public void Get(int id, Object o)
{
Console.Write (o.obj);
Console.Write (o.obj2);
}