Web Development
Angular
Subjective
Oct 23, 2025
How do you implement custom validators in reactive forms?
Detailed Explanation
Create functions returning ValidationErrors or null. Example: function emailValidator(control: AbstractControl): ValidationErrors | null { const email = control.value; if (!email || email.includes("@")) return null; return { invalidEmail: true }; }
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts