Hello All, I am trying to add ngMessages to a template dynamically, based on a validators object on the controller. The validators object defines what validators need to be applied to the model by a directive. The reason i want to define the messages in the controller is because then they can be used with a notifier directive instead of ngMessages when wanted.
An example of what i'm talking about is here: http://plnkr.co/edit/PKpjRcYBtC220nn3jlRZ?p=preview It is working as it is, but I am setting an ngMessage for each of the validators. If you look at line 27 on index.html you can see the commented out repeater that I want to get working. When I uncomment that I get an error to do with the assignment of the attribute when="{{validator.name}}" inside the repeater. The validation (sort of) seems to be working, but the error suggests it is not working. Any ideas on how to get this working? Or perhaps this is all a stupid idea? Your thoughts are much appreciated! Cheers, Kenese -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
