Custom Components Validation
You might have a custom component that you want to treat as an input. Like a custom input field, it would have its own validator instance, but you want to validate it in the parent scope because it is simply just an input with some whistles on top. You can achieve this by using the directive normally like you would on a regular input element, but you must make sure that your component satisfies the following:
- Must emit an
inputevent whenever the value changes.
- Should have a
namegetters define in the components
$_veeValidatector options alternatively it can use the
You can find a step-by-step guide on creating validatable components by reading this article.