I went through many posts, but did not find what I was looking for.
Basically,
I am showing a user check for form changes. My template looks like this:
<div class="form-group" [class.error]="!loginForm.find('email').valid && loginForm.find('email').touched"> <div class="input-wrapper"> <input type ="email" class="form-control" id="email-input" placeholder="Email" formControlName="email"> </div> <div *ngIf="loginForm.controls['email'].dirty && !loginForm.controls['email'].valid" class="alert-msg">Email is invalid</div> </div>
And, looking at other posts, my TS, which issues the form, is this:
this.loginForm.valueChanges.debounceTime(500).subscribe(form => { console.log(form, this.loginForm); });
Now console magazines are actually debuting. But the check message is not debugged. It immediately displays a message.
Is there any way to overcome this problem?
Thanks for stopping,
source share