Advertisement
Guest User

Untitled

a guest
Jan 10th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. <ion-view view-title="Create Account">
  2.  
  3. <form name="form" novalidate="" ng-submit="createUser(form)">
  4. <div class="list">
  5. <label class="item item-input">
  6. <span class="input-label">Email:</span>
  7. <input type="text" ng-name = "email" ng-model="form.email" ng-minlength="5" ng-maxlength="20" required>
  8. </label>
  9.  
  10. <div class="error-container">
  11. <div ng-messages-include="error-list.html"></div>
  12. </div>
  13.  
  14. <label class="item item-input">
  15. <span class="input-label">Password</span>
  16. <input type="password" ng-name = "password" ng-model="form.password" ng-minlength="5" ng-maxlength="20" required>
  17. </label>
  18.  
  19. <div class="error-container last-error-container">
  20. <div ng-messages-include="error-list.html"></div>
  21. </div>
  22.  
  23. </div>
  24. <button class="button button-full button-positive" type="submit">
  25. Create Account
  26. </button>
  27. </form>
  28.  
  29. $scope.createUser = function(form) {
  30. console.log("Email: " + form.email);
  31. console.log(form.password);
  32.  
  33. var information = {
  34. email: form.email,
  35. password: form.password
  36. };
  37. Settings.createUser(form.email, form.password);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement