Within a directive, I am utilizing an input with a dynamic name structure:
<input class="input-field" name="{{name}}" type="number" ... />
My goal is to retrieve the $error
variable of the form from inside the directive. Can this be achieved by using something like form.{{name}}.$error.number
?
Is there a method to accomplish this task?