You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
The idea is to force a form to call $validate() on all its controls. Where this is useful is when the validity of a form control depends on the values of other controls in the form.
My current workaround is this:
function revalidate(form)
{
angular.forEach(form, function (value, key)
{
if (typeof value === 'object' && value.hasOwnProperty('$modelValue')) value.$validate();
});
}