To implement a custom validation directive in template-driven forms, your directive must implement the ______ interface.
- FormControlValidator
- NgFormValidator
- ValidationDirective
- ValidatorDirective
To implement a custom validation directive in template-driven forms, your directive must implement the ValidatorDirective interface. This interface allows you to define custom validation logic for form controls in Angular template-driven forms. It's important to correctly implement this interface to ensure your custom directive can be used effectively for form validation.
Loading...
Related Quiz
- When creating a custom form control in Angular, which interface should it implement to work seamlessly with Angular's form directives?
- For handling offline data synchronization in an Angular app, which RxJS operator would be most appropriate?
- What is the default change detection strategy in Angular?
- Which of the following is NOT a method available on ViewContainerRef?
- To define specific styles that apply only to a component and do not affect any external elements, you'd set the component's encapsulation property to ViewEncapsulation.______.