Which built-in validator can be used to ensure a form control's value is required in Angular?
- isRequired
- mandatory
- required
- validateRequired
The **required** validator is used to ensure that a form control's value is required in Angular. It helps validate whether the control has a value.
Loading...
Related Quiz
- How can you display validation error messages for a custom validator in Angular?
- How would you implement cross-field validation in a reactive form?
- How can you dynamically add form controls in reactive forms?
- You're building a type-ahead search feature in an Angular application. The user input should trigger API calls, but you want to avoid making unnecessary calls for every keystroke. Which RxJS operators can help optimize this?
- To check if a form control's value has been changed by the user, you can check the _____ property.