I think @SunilD'2 comment to another answer is worth an answer of its own, because the approach with ng-form can facilitate more validation scenarios (for example, highlighting a row in the table where one of the inputs is invalid)