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.

  1. create wcf service returns json data.
  2. host on iis.
  3. create angularjs application.
  4. consume wcf service in angularjs application.

this , this links simple examples of want do.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -