angular-auto-validate icon indicating copy to clipboard operation
angular-auto-validate copied to clipboard

Integrating into Legacy Applications doesn't work for nested forms

Open karolwebsky opened this issue 9 years ago • 4 comments

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.

karolwebsky avatar Dec 05 '15 19:12 karolwebsky

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

jonsamwell avatar Dec 05 '15 22:12 jonsamwell

Hi @jonsamwell, Thank you for the prompt answer. You can take a look here: http://plnkr.co/edit/BEcLGvvzNHlag7kmPdBN?p=preview

karolwebsky avatar Dec 08 '15 17:12 karolwebsky

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

jonsamwell avatar Dec 09 '15 17:12 jonsamwell

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 .

karolwebsky avatar Dec 09 '15 17:12 karolwebsky