خرید بک لینک

Vote count: 0

I am new to angularJS and leaing implementing webservices. I have a sevice that I hit on 'Post man ' that is working fine but when I am implementing this service in my angular code and i tested on Google chrome console it is giving me status 405 method not found error. I don't know the reason.Below is the code I am using

var myApp = angular
            .module('myApp',[])
            .controller('MyController', function ($scope, $http) {


            var parameter = JSON.stringify({search:''});
            $http.post(url, parameter).then(function(response) {
                alert(response.data);
            });
});

asked 9 secs ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 8 مرداد 1395 ساعت: 18:22

صفحه بندی