I\'m very new to angularjs. Say my app has a form. Using the inspector, I noticed that if angularjs thinks that the form is invalid, it adds an ng-invalid class to the form.
You can also use myform.$invalid
myform.$invalid
E.g.
if($scope.myform.$invalid){return;}