Advertisement
Guest User

Untitled

a guest
May 2nd, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1.  
  2. .controller('signupController', function($scope, $state, IonicComponent, userFactory) {
  3. //signup
  4. $scope.signup = function(user) {
  5. var userInfo = {
  6. firstName: user.firstName,
  7. lastName: user.lastName,
  8. email: user.email,
  9. password: user.password
  10. };
  11.  
  12. userFactory.registerUser(userInfo).then(function(res){
  13. $state.go('tab.account');
  14. });
  15. };
  16. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement