javascript - How to grab the ajax call (the url) sent from a form using ng-submit? -


i have form submits data rails backend. when submitted, form run ajax call. url use : http://localhost:3000/panel/vehicles?utf8=%e2%9c%93&q%5bcode_cont%5d=66. how can grab url form sends using ng-submit?

<input type="hidden" ng-value="geturl()"/>  $scope.geturl = function(){   return $location.absurl(); } 

enter image description here


Comments