From c4a87fec9be4ed0ddd10ee0f16fefa772144215d Mon Sep 17 00:00:00 2001 From: Anthony Nahas Date: Sat, 20 Apr 2019 21:25:29 +0300 Subject: [PATCH] fix(package): removed logs --- .../mat-password-strength/mat-password-strength.component.ts | 5 +++-- src/module/validator/mat-password-strength-validator.ts | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/module/component/mat-password-strength/mat-password-strength.component.ts b/src/module/component/mat-password-strength/mat-password-strength.component.ts index c983fdff..8098a11d 100644 --- a/src/module/component/mat-password-strength/mat-password-strength.component.ts +++ b/src/module/component/mat-password-strength/mat-password-strength.component.ts @@ -53,8 +53,11 @@ export class MatPasswordStrengthComponent implements OnInit, OnChanges { containAtCustomChars: boolean; formGroup: FormGroup; + + // TO ACCESS VIA CONTENT CHILD passwordFormControl: FormControl = new FormControl(); passwordConfirmationFormControl: FormControl = new FormControl(); + validatorsArray: ValidatorFn[] = []; private _strength = 0; @@ -64,7 +67,6 @@ export class MatPasswordStrengthComponent implements OnInit, OnChanges { matPasswordStrengthValidator = new MatPasswordStrengthValidator(); ngOnInit(): void { - console.log('password strength comp. on init'); this.setRulesAndValidators(); this.formGroup = new FormGroup({ 'password': this.passwordFormControl, @@ -159,7 +161,6 @@ export class MatPasswordStrengthComponent implements OnInit, OnChanges { } setRulesAndValidators(): void { - console.log('on setting rules'); this.passwordConfirmationFormControl .setValidators(Validators.compose([ Validators.required, this.matPasswordStrengthValidator.confirm(this.password) diff --git a/src/module/validator/mat-password-strength-validator.ts b/src/module/validator/mat-password-strength-validator.ts index e2354ed6..b1c5a32e 100644 --- a/src/module/validator/mat-password-strength-validator.ts +++ b/src/module/validator/mat-password-strength-validator.ts @@ -25,7 +25,6 @@ export class MatPasswordStrengthValidator { } confirm(password: string): ValidatorFn { - console.log('password to confirm: ', password); const validator = (control: AbstractControl): { [key: string]: any } => { this.isUndefinedOrEmpty(control); if (control.value !== password) {