I have an input wrapped in a directive with a dynamic name like this:
<input class="input-field" name="{{name}}" type="number" ... />
Now I want to access the $error variable of the form IN the directive.
Something like form.{{name}}.$error.number.
Is there a way to do this?