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

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Using jquery append to add option values into a select element not working -

javascript - Restarting Supervisor and effect on FlaskSocketIO -