How to set min, max value from html only based on freqValue.
- If freqValue = 1 then min = 1, max = 20
- ELSE If freqValue = 2 then min = 1, max = 45
- ELSE freqValue = 3 then min = 1, max = 100
<input type="number" min="0" max="100" ng-model="interval" /> <select ng-model="freqValue" ng-options="f.key as f.value for f in freq"> </select>