Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to check invalid control angular formcontrol name

public findInvalidControls() {
        const invalid = [];
        const controls = this.AddCustomerForm.controls;
        for (const name in controls) {
            if (controls[name].invalid) {
                invalid.push(name);
            }
        }
        return invalid;
    }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #invalid #control #angular #formcontrol
ADD COMMENT
Topic
Name
6+4 =