Hi All, I am trying to add validation dynamically to an input, with the intent of having the controller store each of the input's validation types and error messages. It is working, but not when the form is in an ng-if that is only set to true once an async call returns.
Here is a trimmed down example of it not working: http://plnkr.co/edit/aeZJXqtwVs85nPE1Pn2T?p=preview If you remove the ng-if from the containing div, validation starts to work and the input is populated with the data that is set in the async call. With the ng-if, text isn't populated and validation never fires. Does anyone have an explanation of why this might be? I have read https://groups.google.com/forum/#!searchin/angular/ng-if$20directive/angular/Vjo4HZ2bW1A/vKWf-m6BKMkJ and it seems the issue might be similar, but i can't figure out what bit in the solution can help me... Thanks in advance! -- 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.
