Created
December 18, 2023 20:16
-
-
Save andrewarosario/fbde43afad6f5a951506efa73c10b07e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class FormComponent { | |
form: FormGroup; | |
constructor(private formBuilder: FormBuilder) { | |
this.form = this.formBuilder.group({ | |
username: ['', forbiddenNameValidator(/bob/i)], | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment