I have a POST request within a function. I see the POST request gets the data correctly but for some reason the scope value doesn't get updated. The same request exsits at the start of controller where it works fine
$http.post('/api/v1/manual/create/edit?value='+$scope.edit,$scope.manual).success(function (data) {
$modalInstance.dismiss('cancel');
$scope.manual = data;
ManualService.setManual('');
}).error(function (data, status) {
console.log('Error ' + data)
})
POST response
[
{
"id":"5861f0ef4b282671e3da4bc8",
"name":"Test",
"version":"1.0.0",
"details":"\u003cp\u003eTest\u003c/p\u003e",
"createdOn":"Dec 26, 2016 8:41:19 PM",
"testType":[
{
"name":"Mobile",
"issues":"0",
"scanned":false,
"percentAudit":"0"
},
{
"name":"Database",
"issues":"0",
"scanned":false,
"percentAudit":"0"
},
{
"name":"Web/Api",
"issues":"0",
"scanned":false,
"percentAudit":"0"
},
{
"name":"Network",
"issues":"0",
"scanned":false,
"percentAudit":"0"
}
]
}
]
In the above code value of $scope.manual doesn't get updated even if the response gets all the correct values.