Skip to content

Commit f304d02

Browse files
committed
add to components & refactor old ones. Closes #252
1 parent b19c89b commit f304d02

File tree

5 files changed

+20
-12
lines changed

5 files changed

+20
-12
lines changed

angular/app/components/forgot-password/forgot-password.component.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ class ForgotPasswordController {
55
this.API = API;
66
this.$state = $state;
77
this.ToastService = ToastService;
8+
}
89

10+
$onInit(){
911
this.email = '';
1012
}
1113

angular/app/components/login-form/login-form.component.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ class LoginFormController {
44

55
this.$auth = $auth;
66
this.ToastService = ToastService;
7-
8-
this.email = '';
9-
this.password = '';
107
}
118

9+
$onInit(){
10+
this.email = '';
11+
this.password = '';
12+
}
13+
1214
login() {
1315
let user = {
1416
email: this.email,

angular/app/components/register-form/register-form.component.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ class RegisterFormController {
44

55
this.$auth = $auth;
66
this.ToastService = ToastService;
7-
8-
this.name = '';
9-
this.email = '';
10-
this.password = '';
117
}
128

9+
$onInit(){
10+
this.name = '';
11+
this.email = '';
12+
this.password = '';
13+
}
14+
1315
register() {
1416
let user = {
1517
name: this.name,

angular/app/components/reset-password/reset-password.component.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ class ResetPasswordController {
55
this.API = API;
66
this.$state = $state;
77
this.ToastService = ToastService;
8+
}
89

10+
$onInit(){
911
this.password = '';
1012
this.password_confirmation = '';
1113
this.isValidCode = false;

composer.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)