@@ -25,73 +25,72 @@ <h1>@angular-material-extensions/password-strength</h1>
25
25
< section class ="home ">
26
26
< div class ="container ">
27
27
28
- <!-- < div fxLayout="column">-- >
29
- <!-- <mat-toolbar>-- >
30
- <!-- @angular-material-extensions/password-strength-->
31
- <!-- <span fxFlex></span>-- >
28
+ < div fxLayout ="column ">
29
+ < mat-toolbar >
30
+ @angular-material-extensions/password-strength
31
+ < span fxFlex > </ span >
32
32
33
- <!-- <button mat-icon-button-->
34
- <!-- color="accent"-->
35
- <!-- matTooltip="view source"-->
36
- <!-- (click)="viewSource2 = !viewSource2">-- >
37
- <!-- <mat-icon>code</mat-icon>-- >
38
- <!-- </button>-- >
39
- <!-- </mat-toolbar>-- >
40
- <!-- <mat-card>-- >
41
- <!-- <mat-card-subtitle>-- >
42
- <!-- stand alone password component-->
43
- <!-- </mat-card-subtitle>-- >
33
+ < button mat-icon-button
34
+ color ="accent "
35
+ matTooltip ="view source "
36
+ (click) ="viewSource2 = !viewSource2 ">
37
+ < mat-icon > code</ mat-icon >
38
+ </ button >
39
+ </ mat-toolbar >
40
+ < mat-card >
41
+ < mat-card-subtitle >
42
+ stand alone password component
43
+ </ mat-card-subtitle >
44
44
45
45
46
- <!-- <mat-card-content *ngIf="viewSource2">-- >
47
- <!-- <mat-tab-group>-- >
48
- <!-- <!– tab 1–> -->
49
- <!-- <mat-tab>-- >
50
- <!-- <ng-template mat-tab-label>HTML</ng-template>-- >
51
- <!-- <pre><code highlight [highlight]="html1 "></code></pre>-- >
52
- <!-- </mat-tab>-- >
46
+ < mat-card-content *ngIf ="viewSource2 ">
47
+ < mat-tab-group >
48
+ <!-- tab 1-->
49
+ < mat-tab >
50
+ < ng-template mat-tab-label > HTML</ ng-template >
51
+ < markdown src =" assets/md/home/e1/html.md "> </ markdown >
52
+ </ mat-tab >
53
53
54
- <!-- <mat-tab>-- >
55
- <!-- <ng-template mat-tab-label>TS</ng-template>-- >
56
- <!-- <pre><code highlight [highlight]="ts "></code></pre>-- >
57
- <!-- </mat-tab>-- >
58
- <!-- </mat-tab-group>-- >
59
- <!-- </mat-card-content>-- >
54
+ < mat-tab >
55
+ < ng-template mat-tab-label > TS</ ng-template >
56
+ < markdown src =" assets/md/home/e1/ts.md "> </ markdown >
57
+ </ mat-tab >
58
+ </ mat-tab-group >
59
+ </ mat-card-content >
60
60
61
- <!-- <mat-card-subtitle>-- >
62
- <!-- <mat-slide-toggle [(ngModel)]="showDetails">Show Password Details</mat-slide-toggle>-- >
63
- <!-- </mat-card-subtitle>-- >
61
+ < mat-card-subtitle >
62
+ < mat-slide-toggle [(ngModel)] ="showDetails "> Show Password Details</ mat-slide-toggle >
63
+ </ mat-card-subtitle >
64
64
65
- <!-- <mat-card-content>-- >
66
- <!-- <!– password input filed–> -->
67
- <!-- <mat-form-field appearance="outline" style="width: 100%" [color]="passwordComponent.color">-- >
68
- <!-- <mat-label>Password</mat-label>-- >
69
- <!-- <mat-pass-toggle-visibility #toggle matSuffix></mat-pass-toggle-visibility>-- >
70
- <!-- <input matInput #password-->
71
- <!-- [type]="toggle.type"-->
72
- <!-- required-->
73
- <!-- placeholder="Password">-- >
74
- <!-- <mat-hint align="end" aria-live="polite">-- >
75
- <!-- {{password.value.length}} / 25-->
76
- <!-- </mat-hint>-- >
77
- <!-- </mat-form-field>-- >
65
+ < mat-card-content >
66
+ <!-- password input filed-->
67
+ < mat-form-field appearance ="outline " style ="width: 100% " [color] ="passwordComponent.color ">
68
+ < mat-label > Password</ mat-label >
69
+ < mat-pass-toggle-visibility #toggle matSuffix > </ mat-pass-toggle-visibility >
70
+ < input matInput #password
71
+ [type] ="toggle.type "
72
+ required
73
+ placeholder ="Password ">
74
+ < mat-hint align ="end " aria-live ="polite ">
75
+ {{password.value.length}} / {{passwordComponent.max}}
76
+ </ mat-hint >
77
+ </ mat-form-field >
78
78
79
- <!-- <!–@angular-material-extensions/password-strength's main component–>-->
80
- <!-- <mat-password-strength #passwordComponent-->
81
- <!-- [enableDigitRule]="true"-->
82
- <!-- (onStrengthChanged)="onStrengthChanged($event)"-->
83
- <!-- [password]="password.value">-->
84
- <!-- </mat-password-strength>-->
79
+ <!--@angular-material-extensions/password-strength's main component-->
80
+ < mat-password-strength #passwordComponent
81
+ (onStrengthChanged) ="onStrengthChanged($event) "
82
+ [password] ="password.value ">
83
+ </ mat-password-strength >
85
84
86
- <!-- <!– Password's strength info–> -->
87
- <!-- <mat-password-strength-info-->
88
- <!-- *ngIf="showDetails"-->
89
- <!-- [passwordComponent]="passwordComponent">-- >
90
- <!-- </mat-password-strength-info>-- >
85
+ <!-- Password's strength info-->
86
+ < mat-password-strength-info
87
+ *ngIf ="showDetails "
88
+ [passwordComponent] ="passwordComponent ">
89
+ </ mat-password-strength-info >
91
90
92
- <!-- </mat-card-content>-- >
93
- <!-- </mat-card>-- >
94
- <!-- < /div>-- >
91
+ </ mat-card-content >
92
+ </ mat-card >
93
+ </ div >
95
94
<!--NGX-MATERIAL-PASSWORD-STRENGTH WITH VALIDATION AND FORM CONTROLLER-->
96
95
97
96
<!-- <div fxLayout="column" class="mt-3">-->
@@ -276,7 +275,8 @@ <h1>@angular-material-extensions/password-strength</h1>
276
275
< mat-error *ngIf ="passwordComponentWithValidation2.passwordConfirmationFormControl.hasError('required') ">
277
276
Password confirmation is required
278
277
</ mat-error >
279
- < mat-error *ngIf ="passwordComponentWithValidation2.passwordConfirmationFormControl.hasError('notConfirmed') ">
278
+ < mat-error
279
+ *ngIf ="passwordComponentWithValidation2.passwordConfirmationFormControl.hasError('notConfirmed') ">
280
280
Password is not the same
281
281
</ mat-error >
282
282
0 commit comments