Skip to content

Instantly share code, notes, and snippets.

@jrm2k6
Created September 4, 2013 20:03
Show Gist options
  • Select an option

  • Save jrm2k6/6442140 to your computer and use it in GitHub Desktop.

Select an option

Save jrm2k6/6442140 to your computer and use it in GitHub Desktop.
userCreatedSuccess not updated
<div class="alert alert-error"> {{userCreatedSuccess}}</div>
$scope.createAccount = function(_email, _password) {
$http({
url: 'http://localhost:8000/api/newuser/',
method: 'POST',
data: JSON.stringify({first_name: "", last_name: "", email: _email, password: _password}),
headers: {'Content-Type': 'application/json'},
}).
success(function(data, status) { $scope.userCreatedSuccess = "trolololol";}).
error(function(data, status) { console.log(data + "trololol " + status);})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment