I have a form.
<form class="form-horizontal" name="canForm" ng-submit="stepSubmit()" novalidate>
It is called "canForm" as described above.
In this form, I need a subformation for a repeating block of requirements.
I define this form
<div ng-form="licencesForm">
inside the "canForm" above.
When I submit licencesFormfor my repeating block, I have to make sure that I installed form.$setPristine()in the controller.
However, when I submit the main one canForm, this form takes the fields requiredin my subform and says that the main form is invalid.
I do not understand this. Should the ng-form directive be an isolated area, and the parent form should not properly meet the field validation requirements in this subform?
If the subformation is valid, the basic form must also be valid, right?
. http://plnkr.co/edit/gkbJNAV95MQ9SGLeMvlg?p=preview
- , $setPristine(), , , , ?