Skip to content

Commit c4a87fe

Browse files
committed
fix(package): removed logs
1 parent 2980ca2 commit c4a87fe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/module/component/mat-password-strength/mat-password-strength.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@ export class MatPasswordStrengthComponent implements OnInit, OnChanges {
5353
containAtCustomChars: boolean;
5454

5555
formGroup: FormGroup;
56+
57+
// TO ACCESS VIA CONTENT CHILD
5658
passwordFormControl: FormControl = new FormControl();
5759
passwordConfirmationFormControl: FormControl = new FormControl();
60+
5861
validatorsArray: ValidatorFn[] = [];
5962

6063
private _strength = 0;
@@ -64,7 +67,6 @@ export class MatPasswordStrengthComponent implements OnInit, OnChanges {
6467
matPasswordStrengthValidator = new MatPasswordStrengthValidator();
6568

6669
ngOnInit(): void {
67-
console.log('password strength comp. on init');
6870
this.setRulesAndValidators();
6971
this.formGroup = new FormGroup({
7072
'password': this.passwordFormControl,
@@ -159,7 +161,6 @@ export class MatPasswordStrengthComponent implements OnInit, OnChanges {
159161
}
160162

161163
setRulesAndValidators(): void {
162-
console.log('on setting rules');
163164
this.passwordConfirmationFormControl
164165
.setValidators(Validators.compose([
165166
Validators.required, this.matPasswordStrengthValidator.confirm(this.password)

src/module/validator/mat-password-strength-validator.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export class MatPasswordStrengthValidator {
2525
}
2626

2727
confirm(password: string): ValidatorFn {
28-
console.log('password to confirm: ', password);
2928
const validator = (control: AbstractControl): { [key: string]: any } => {
3029
this.isUndefinedOrEmpty(control);
3130
if (control.value !== password) {

0 commit comments

Comments
 (0)