angular-auto-validate
angular-auto-validate copied to clipboard
Integrating into Legacy Applications doesn't work for nested forms
Described in here: https://github.com/jonsamwell/angular-auto-validate/wiki/Integrating-into-Legacy-Applications
Validation won't work for forms nested with ng-form. Works ok if it's enabled by default.
Hi @nettino could you do a reproducing plunker as I'm not quite sure of the specific scenario you are referring to. Are you nesting an ng-form within a form and only want the nested ng-form to validate? Once I've got that I'll fix asap. You can use the below plunker as a template
http://plnkr.co/edit/R4vGhrSYvKJREMV7Q4rC?p=preview
Hi @jonsamwell, Thank you for the prompt answer. You can take a look here: http://plnkr.co/edit/BEcLGvvzNHlag7kmPdBN?p=preview
Great thanks for this - I'll take a look. As a quick fix it seems to work if you the ng-form attribute is an element not an attribute.
I'll let you know when this is resolved.
Thanks,
Jon
Hi,
Thank you for that - indeed that works if it's element. Although, of course it would be great if it worked in both cases - I'm sure you'll find the problem sooner or later.
Kind regards,
Karol
On 9 December 2015 at 17:12, Jon Samwell [email protected] wrote:
Great thanks for this - I'll take a look. As a quick fix it seems to work if you the ng-form attribute is an element not an attribute.
I'll let you know when this is resolved.
Thanks,
Jon
— Reply to this email directly or view it on GitHub https://github.com/jonsamwell/angular-auto-validate/issues/117#issuecomment-163328065 .