I have a list of json objects. Each object has minage and maxage.
I want to ng-repeat on this object and display input to enter the minAge and input for maxAge.
I want to add validation for the fields:
- Max age should be bigger than Min age.
- the Min age of the next pair of inputs should be lower than Max age of previous pair of inputs.
directiveyou can find all you need here : docs.angularjs.org/api/ng/input/input%5Bnumber%5D