title: Validate two number fields by comparing values using ng-form angularjs
body: <pre><code>   &lt;input type="text" ng-model="num1"&gt;
     &lt;input type="text" ng-model="num2"&gt;
  </code></pre>
  
  <p>I want to compare numbers entered in above fields and generate error message if num1 &lt; num2 using ng-form. We can do with JS but i want to keep validation simple. Can we implement in HTML tag using ng-form</p>