-
Notifications
You must be signed in to change notification settings - Fork 50
Description
Thank you for such a great tool! I'm wondering if it would be possible to add support for inputs enclosed in a component. This component is being used across multiple pages and may not always be required.
Here is the current (simplified) use:
I switched some of the angle brackets with parentheses since the code was being removed from my comment.
Angular component myParamInput has the following template:
<select name="myParamInputSelect" id="myParamInputSelect" ng-model-"$ctrl.params.myParamInput"
ng-options="paramOption in $ctrl.paramOptions">(/select)
Then the html page includes the tag (my-param-input)(/my-param-input).
I can get the validation tool working if I put it directly in the template, but I don't want to do that, since it won't be a required field every time it is used in our app. I'm wondering if there is any way to reference the element that you want to validate, to allow for something like the following:
<script> function getElement() { document.getElementById("myParamInputSelect"); } </script>I do understand this is a big thing to ask. I will just make two components, one with the validation and one without, if you don't feel like this is worth the time. Thanks!