AngularJS passing data to $http.get request

前端 未结 7 697
无人及你
无人及你 2020-11-22 13:01

I have a function which does a http POST request. The code is specified below. This works fine.

 $http({
   url: user.update_path, 
   method: \"POST\",
   d         


        
7条回答
  •  遇见更好的自我
    2020-11-22 13:05

    For sending get request with parameter i use

      $http.get('urlPartOne\\'+parameter+'\\urlPartTwo')
    

    By this you can use your own url string

提交回复
热议问题