Skip to content

FormControl error in Angular 15 #4

@ankainn

Description

@ankainn
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions