Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- $scope.processSubmitEdit = function (isValid) {
- if(isValid) {
- $http({
- method : 'PUT',
- url : '/vehicles-manufacturers',
- data : $.param($scope.manf), // pass in data as strings
- headers : { 'Content-Type': 'application/x-www-form-urlencoded' } // set the headers so angular passing info as form data (not request payload)
- })
- .success(function(data) {
- if (data.status == true) {
- $location.path("/vehicles-manufacturers");
- } else {
- $scope.messages = data.msg;
- }
- });
- } else {
- $scope.messages = 'Form invalid';
- }
- };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.


