Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FormControl error in Angular 15 #4

Open
ankainn opened this issue Jan 9, 2023 · 2 comments
Open

FormControl error in Angular 15 #4

ankainn opened this issue Jan 9, 2023 · 2 comments

Comments

@ankainn
Copy link

ankainn commented Jan 9, 2023

form = new FormGroup({
    username: new FormControl(null, [Validators.required,  Validators.minLength(4)]),
    password: new FormControl(null, Validators.required),
  });
this.authService
  .login(this.form.get('username')?.value, this.form.get('password')?.value )
  .subscribe((response) => {
    tap(response);
    this.router.navigate(['/user']);
  });

image

@dbejo
Copy link

dbejo commented Mar 21, 2023

I get the same issue. Have you discovered a solution?

@tiesgr
Copy link

tiesgr commented Mar 21, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants