How to pass parameter in Angularjs $http.post

后端 未结 1 1876
孤独总比滥情好
孤独总比滥情好 2021-02-20 12:11

Here i\'m trying to pass the value of \"$scope.getCourse = \'adobe\'\" to the server so that it returns the corresponding course details, from where i can populate list using ng

相关标签:
1条回答
  • 2021-02-20 12:25

    Your data should be a key/val pair, try:

    $http.post('javaServerlet', {course: $scope.getCourse})
    

    And that variable will get to the server under the parameter course

    0 讨论(0)
提交回复
热议问题