Skip to content

Commit

Permalink
refactor: ♻️ remove log
Browse files Browse the repository at this point in the history
  • Loading branch information
Hung Pham committed May 19, 2023
1 parent f8ea546 commit 17f1b8a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,6 @@ export class FormControlValidatorDirective implements AfterViewInit, OnDestroy {
return;
}

if (this.config.uiFrameWork === 'auto') {
console.log('Validation');
}

const uiFrameWork = this.config.uiFrameWork === 'auto' ? this.detectUIFramework() : this.config.uiFrameWork;

switch (uiFrameWork) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { Directive, ElementRef, ViewContainerRef } from '@angular/core';
import { MatFormField } from '@angular/material/form-field';

@Directive({
selector: 'mat-error',
exportAs: 'matError',
})
export class MatErrorDirective {
constructor(public viewContainerRef: ViewContainerRef) {
console.log('MatErrorDirective');
}
}

Expand All @@ -16,17 +14,6 @@ export class MatErrorDirective {
exportAs: 'matFormField',
})
export class MatFormFieldDirective {
constructor(public matFormField: MatFormField, public elementRef: ElementRef) {
console.log('MatFormFieldDirective');
constructor(public elementRef: ElementRef) {
}

ngAfterContentInit(): void {
console.log('matFormField ');
this.matFormField._errorChildren.changes.subscribe(e => {

console.log('hihi-----------', e);
});

}

}

0 comments on commit 17f1b8a

Please sign in to comment.