From date , To date validation in angular js
<p>This is my code</p>

<pre><code>&lt;tr ng-show="option == 'Yearly' || option == 'Date'"&gt;
  &lt;td&gt;
    &lt;label&gt;From:&lt;/label&gt;
  &lt;/td&gt;
  &lt;td&gt;
    &lt;input type="date" ng-model="fromdate" id="fromdate" date-picker /&gt;
  &lt;/td&gt;
  &lt;td&gt;
    &lt;label&gt;To:&lt;/label&gt;
  &lt;/td&gt;
  &lt;td&gt;
    &lt;input type="date" ng-model="todate" date-picker /&gt;
  &lt;/td&gt;
&lt;/tr&gt;
</code></pre>

<p>I have a jquery date picker for fromdate and todate, I need to disable all the dates in the end date which is lesser than the from date.....</p>