Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ion-view view-title="Create Account">
- <form name="form" novalidate="" ng-submit="createUser(form)">
- <div class="list">
- <label class="item item-input">
- <span class="input-label">Email:</span>
- <input type="text" ng-name = "email" ng-model="form.email" ng-minlength="5" ng-maxlength="20" required>
- </label>
- <div class="error-container">
- <div ng-messages-include="error-list.html"></div>
- </div>
- <label class="item item-input">
- <span class="input-label">Password</span>
- <input type="password" ng-name = "password" ng-model="form.password" ng-minlength="5" ng-maxlength="20" required>
- </label>
- <div class="error-container last-error-container">
- <div ng-messages-include="error-list.html"></div>
- </div>
- </div>
- <button class="button button-full button-positive" type="submit">
- Create Account
- </button>
- </form>
- $scope.createUser = function(form) {
- console.log("Email: " + form.email);
- console.log(form.password);
- var information = {
- email: form.email,
- password: form.password
- };
- Settings.createUser(form.email, form.password);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement