Jump to content
Search Community

srinum

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by srinum

  1. Following code using $http service in Angularjs is not giving required output:
     

    $http({
                    url: ' "http://localhost/AdvancersService/AdvancersService.svc/GetDomains" ',
                    method: "POST",
                    data: { "name": { "SearchText": "Info" } },
                    
                })
                        .then(function (response) {
                            // success
                            alert("Success:" + response)
                           
                        },
                        function (response) {
                            // failed
                            
                            alert("Failed" + response)
                        });
    

    please suggest to make code operate, any suggestion will be appreciated.
     

×
×
  • Create New...