Hi there,

Unfortunately I'm new to MVC, Java and Angular but I've been tasked with 
working on an existing application.

I've tracked a bug down and I know what is happening and why but I have a 
disconnect between 2 pieces of code. I'm sure I'm missing one key piece of 
information that would clear it all up for me and I'm hoping when I 
describe the issue, someone can clear it up for me.

There is a controller javascript file with the following snippet of code:

else if ($scope.selectedItem == 1) {

                    $scope.newScoreTableValue.questionnaireQuestionID = 
$scope.questionTempId;

                    $scope.newScoreTableValue.responseType = 
$scope.selectedItem;

                    $scope.newScoreTableValue.responseShortForm = "Yes";

                    $scope.newScoreTableValue.responseValue = 
$scope.valueyes;

                    $scope.loading = true;
                    $http.post('/api/QuestionResponse/', 
$scope.newScoreTableValue).success(function (data) {

The post calls the following method:

        // POST api/<controller>

        public QuestionnaireQuestionResponses Post(
QuestionnaireQuestionResponses response)

        {

            return _QuestionRepository.SaveQuestionResponse(response);

        }


My disconnect is that I can't figure out where the response object is 
coming from. When I step through the code I go from the $http.post to the 
Post(...) method. There is a value in the response object I need to set. Is 
there some intermediate step that I'm missing?

I'm hope this is enough to go on. I'm hoping someone will see this and say, 
"Oh, you need to look for ..."


Thanks,


Carlo.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to