Created
September 12, 2016 16:26
-
-
Save unicodeveloper/b0b5ce52ec0892ba16b4322a78656a44 to your computer and use it in GitHub Desktop.
Cloudinary Blog Post - Part 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$scope.signup = function() { | |
$auth.signup($scope.user) | |
.then(function(response) { | |
$auth.setToken(response); | |
$location.path('/'); | |
toastr.info('You have successfully created a new account and have been signed-in'); | |
}) | |
.catch(function(response) { | |
console.log(response); | |
toastr.error(response.data.message); | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment