Jump to content
Search Community

Progrmming with $http service in Angularjs is not giving desired result

srinum test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

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.
 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...