How can I skip validation of nested forms with AngularJS? I have to make an outer form valid even when its child form is invalid.
In the example below outer form sh
I had the same issue and resolve it with bit change in local copy of angular.js file itself.
Basically, I added new function to the FormController as below:
form.$resetParent = function() {
parentForm = nullFormCtrl;
};
and create custom directive:
angular.module('myApp').directive('dtIsolatedForm', function () {
return {
restrict: 'A',
require: '?form',
link: function (scope, element, attrs, formController) {
if (!formController || !formController.$parentForm) {
return;
}
formController.$resetParent();
}
};
});