in my angular js controller i have an ajax request which is returning me an object :
var d= $myformdata;
$.ajax({
type: "POST",
url: url,
data: d,
success: function(message){
console.log(message);
myNavigator.pushPage('confirmation.html', {msg: message} );
$scope.msg = myNavigator.getCurrentPage().options.msg;
console.log($scope.msg);
}
});
else{ alert($err_msg); }
i get the response(message) but when i try to push the data to access it on confirmation page it says undefined. it would be pleasure if anyone could help