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

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

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -