dynamic element validation
I have a problem with validating inputs that are generated dynamically. Here is the fiddle that shows the problem: http://jsfiddle.net/flsilva/8JzDb/17/
this is taken from: https://groups.google.com/forum/?fromgroups=#!topic/angular/qLeUWZVuQMI
the name is generated fine but it's not bound to the form scope. Because I can name it correctly but the form is not bound, it seems that this behavior is inconsistent.
Thoughts?
+1
+1
+1
+1
+1, have had massive problems trying to get a work around for this. Nested forms might solve the 1-many problem (albiet a messy), but I still ran into problems where the name of property is itself dynamic. i.e. innerForm.dynaminPropertyName Had to create a hacky directive to 'correct' the name of the input on the form in the scope as they were being compiled.
+1 !!
:+1:
+1
+1
:+1:
+1
+1
+1
+1
+1
+1
+1 The following example shows the problem more clearly: http://jsfiddle.net/Thinkscape/bbCVf/
If you need this behaviour prior to 1.3, you can easily do something like http://plnkr.co/edit/hSMzWC?p=preview (or in a more no-conflicty fashion http://plnkr.co/edit/VnHHEe?p=preview) --- There are currently pull requests open for this feature (#4791 and #5231 respectively, but actually quite a few more), feel free to vouch for those and test them out
@caitp thank you! Here's an an example using the workaround in my context: http://jsfiddle.net/Thinkscape/23RPt/
+1 would love to see this properly resolved as a feature of AngularJs and not needing a hack.