I am currently facing an issue with two functions that I have in my code:
var getConfigs = function () {
var defer = $q.defer();
$http.get('/api/Config/Get')
.success(function (data) {
defer.resolve({
configs: data,
});
});
return defer.promise;
}
var putConfigs = function(config) {
// Upon checking, I can observe that config has certain values
$http.put('/api/Config/Put', config);
}
After calling getConfigs()
, I notice that data is being received in Fiddler and the $scope.configs variable is populated. However, when I call putConfigs($scope.config);
, nothing appears in Fiddler and no message is sent to my host controller.
Could someone provide any insights on what could be causing this problem? Additionally, are there alternative methods for debugging this issue besides using Chrome to analyze the code and Fiddler to monitor the activity?