0

I would like to validate multiple elements with ng-model. When every single one of them is true, perform an action.

Is this possible?

2
  • Show us what you've tried so far Commented Apr 22, 2014 at 9:19
  • 1
    Are you using a form? If yes, you can use form validation in angularjs. Otherwise you can watch on individual variables and validate whenever they change. Commented Apr 22, 2014 at 9:37

1 Answer 1

1

You can use AngularJS built-in validation.

Here is a good resource describing how to use it:
http://scotch.io/tutorials/javascript/angularjs-form-validation

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.