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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Guest UserRank #259 · 9.8K reputationPosted Aug 14, 2014, 4:13 PM EDT
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);
}