I have an HTML form that is dynamically created from the given “product” and the fields that it has, allowing the user to modify the associated data. I use the custom "editor" directive to handle the creation of HTML elements necessary for the user to update data.
An example can be seen here: http://plnkr.co/edit/2fAVVpwTHFgxwTq4eAMI
First off, I'm not sure if this is the best way to achieve this, but it (so far) seems to be working fine. (Any other idea is welcome!)
However, I want to add validation rules for controls, for example. require so that a message appears when the input is left blank. I tried to add these validation rules to the code (as seen from the template in the directive), but it never works. I am almost sure that something is connected with me because I get my passages with areas somewhere ... AngularJS Batarang shows an object on the main sphere:
form: { {{fieldName}}: {} }
Which is clearly wrong (and nonsense!)
source share