asp.net - AngularJS using Webservice -
using system; using system.collections.generic; using system.linq; using system.web; using system.web.services; /// <summary> /// summary description webservice /// </summary> [webservice(namespace = "http://tempuri.org/")] [webservicebinding(conformsto = wsiprofiles.basicprofile1_1)] // allow web service called script, using asp.net ajax, uncomment following line. // [system.web.script.services.scriptservice] public class webservice : system.web.services.webservice { public webservice () { //uncomment following line if using designed components //initializecomponent(); } public string firstname { get; set; } public string lastname { get; set; } [webmethod] public string helloworld() { return "hello world"; } }
how create example of angularjs using webservice in asp.net?
how create webservice in angularjs?
i have created simple example of angularjs how create angularjs webservice?
you can create wcf service , consume in angularjs application.
- create wcf service returns json data.
- host on iis.
- create angularjs application.
- consume wcf service in angularjs application.
Comments
Post a Comment