Link to home
Start Free TrialLog in
Avatar of Seven price
Seven priceFlag for United States of America

asked on

AngularJS ng-required conditions

I have 3 buttons if button 1 is pressed then number 1 text boxes will submit and it will ignore 2 and 3
if button 2 is pressed then 2 and 1 will check for validation but ignore 3.
if 3 is pressed the 2 and 1 and 3 will all check for validation.
is this possible.
http://jsfiddle.net/sevensnake/ahL58/17/
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Bob has a very nice solution there. I would only add the obvious, that in the buttonClick function you should probably make sure to reinitialize clickState array.
Avatar of Seven price

ASKER

tks