Skip to content

Instantly share code, notes, and snippets.

@CiscoKidxx
Created November 11, 2015 17:51
Show Gist options
  • Save CiscoKidxx/6bbb11732515ce26c6d1 to your computer and use it in GitHub Desktop.
Save CiscoKidxx/6bbb11732515ce26c6d1 to your computer and use it in GitHub Desktop.
angular.module('app').factory('AuthService', function ($http) {
return {
signup: function (email, password, company, name) {
return $http.post('/api/user/email', {email, password, company, name})
},
currentUser: null
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment