Question: I have two inputs one for min and the other for max value.   

How can I add validation so the min < max?

```html
<div class="form-group">
    <label class="control-label"> Montant minimum</label> 
    <input id="min" class="form-control" type="number" ng-model="type.minMontant" required/>
</div>

<div class="form-group">
    <label class="control-label"> Montant maximum</label> 
    <input id="max" class="form-control" type="number" ng-model="type.maxMontant" required/>
</div>
```

And then when I'll try to pick a value, it must be in [min,max] ?

Answer: 
**Not Sure if this is wat you want**

**if you want validation messages to show then you have to use angular-messages**

```
<div ng-app>
    <div class="form-group">
        <label class="control-label"> Montant minimum</label> 
        <input id="min" class="form-control" type="number" min="0" max="{{maxMontant}}" ng-model="minMontant" required/>
    </div>

    <div class="form-group">
        <label class="control-label"> Montant maximum</label> 
        <input id="max" class="form-control" type="number" max="10" ng-model="maxMontant" required/>
    </div>
</div>

```
add `min` and `max` attiribute(html5) 

```
<div class="form-group">
    <label class="control-label"> Montant minimum</label> 
    <input id="min" class="form-control" type="number" ng-model="type.minMontant" min="0" required/>
</div>

<div class="form-group">
    <label class="control-label"> Montant maximum</label> 
    <input id="max" class="form-control" type="number" ng-model="type.maxMontant" max="10" required/>
</div>

```