Sandy V
asked on
Validations in angularJS
Is there a way to set two fields combined as required field in AngularJS, let's say you have two text fields Product & Order & i need to make sure that atleast one of the field is populated
ASKER
Here Product & Order are 2 different input fields. Where should i put the ng-required directive?? i thought the only way to achieve this is using a custom directive
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect, thanks for the explanation
You are welcome.
Open in new window
where expression is an expression that checks your model values
Open in new window
In your controller code
Open in new window