diff options
Diffstat (limited to 'client/js/requests')
| -rw-r--r-- | client/js/requests/identity.js | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/client/js/requests/identity.js b/client/js/requests/identity.js new file mode 100644 index 0000000..cad1261 --- /dev/null +++ b/client/js/requests/identity.js @@ -0,0 +1,42 @@ + +// Make Namespace +var identity = {} ; + + + + + + +/* +mainApp.controller('identityCtrl', function($scope, $http) { + + $scope.identityFormData = {}; + + $scope.processForm = function() { + + $http({ + method : 'POST', + url : 'http://148.60.11.31/', + data : $.param($scope.identityFormData), + headers : { 'Content-Type': 'application/x-www-form-urlencoded' } + }) + .success(function(data) { + console.log(data); + + if (!data.success) { + // if not successful, bind errors to error variables + //$scope.errorName = data.errors.name; + //$scope.errorSuperhero = data.errors.superheroAlias; + } else { + // if successful, bind success message to message + //$scope.message = data.message; + } + }); + }; + + + +});*/ + + + |
