File tree Expand file tree Collapse file tree 2 files changed +18
-5
lines changed
src/module/components/ngx-auth-firebaseui-login Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Original file line number Diff line number Diff line change 1414 < form name ="loginForm " [formGroup] ="loginForm " novalidate >
1515
1616 < mat-form-field [appearance] ="appearance ">
17- < input matInput placeholder =" Email " formControlName ="email ">
17+ < input matInput [ placeholder] =" emailText " formControlName ="email ">
1818 < mat-icon matSuffix color ="primary "> email</ mat-icon >
1919 < mat-error *ngIf ="loginForm.get('email').hasError('required') ">
20- Email is required
20+ {{emailErrorRequiredText}}
2121 </ mat-error >
2222 < mat-error
2323 *ngIf ="!loginForm.get('email').hasError('required') &&
2424 loginForm.get('email').hasError('email') ">
25- Please enter a valid email address
25+ {{emailErrorPatternText}}
2626 </ mat-error >
2727 </ mat-form-field >
2828
2929 < mat-form-field [appearance] ="appearance ">
30- < input matInput type ="password " placeholder =" Password " formControlName ="password ">
30+ < input matInput type ="password " [ placeholder] =" passwordText " formControlName ="password ">
3131 < mat-icon matSuffix color ="primary "> lock</ mat-icon >
3232 < mat-error >
33- Password is required
33+ {{passwordErrorRequiredText}}
3434 </ mat-error >
3535 </ mat-form-field >
3636
6060 < span class ="text "> {{orLabelText}}</ span >
6161 </ div >
6262
63+ <!-- <ngx-auth-firebaseui-providers layout="column"-->
64+ <!-- theme="raised"-->
65+ <!-- [providers]="providers"></ngx-auth-firebaseui-providers>-->
66+
6367 < button mat-raised-button class ="google ">
6468 Google
6569 </ button >
Original file line number Diff line number Diff line change @@ -27,6 +27,15 @@ export class NgxAuthFirebaseuiLoginComponent implements OnInit {
2727 @Input ( ) dontHaveAnAccountText = 'Don\'t have an account?' ;
2828 @Input ( ) createAccountButtonText = 'Create an account' ;
2929
30+ // i18n email
31+ @Input ( ) emailText = 'Email' ;
32+ @Input ( ) emailErrorRequiredText = 'Email is required' ;
33+ @Input ( ) emailErrorPatternText = 'Please enter a valid email address' ;
34+
35+ // i18n password
36+ @Input ( ) passwordText = 'Password' ;
37+ @Input ( ) passwordErrorRequiredText = 'Password is required' ;
38+
3039 // Events
3140 @Output ( ) onSuccess : any ;
3241 @Output ( ) onError : any ;
You can’t perform that action at this time.
0 commit comments