Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .controller('signupController', function($scope, $state, IonicComponent, userFactory) {
- //signup
- $scope.signup = function(user) {
- var userInfo = {
- firstName: user.firstName,
- lastName: user.lastName,
- email: user.email,
- password: user.password
- };
- userFactory.registerUser(userInfo).then(function(res){
- $state.go('tab.account');
- });
- };
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement