var app = angular.module("myApp",[]);
app.controller("myCtrl",function($scope,$http){
$http({
method: 'POST',
url: '../api/CreateOrder',
data: Object.toparams(myobject),
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
}).then(function successCallback(response) {
window.location.href = "checkout.html?OrderId=" + response.data;
}, function errorCallback(response) {
alert("Error. while updating user Try Again!");
});
});
Here is my code , I am receiving response from http GET , How to transfer the response data which has OrderId to window.location.href as Parameter?
response.data?