Disable past dates in datepicker-popup
<p>I have below code snippet in which datepicker control is there. </p>

<pre><code>&lt;input type="text" name="startDate" class="form-control  input-sm" datepicker-popup="dd-MMMM-yyyy" ng-model="startDate" required /&gt;
</code></pre>

<p>Here, i have to disable the past dates in the datepicker control and below is what i have configured but its not working. Am I missing something here?</p>

<pre><code>App.config(['datepickerConfig', 'datepickerPopupConfig', function (datepickerConfig, datepickerPopupConfig) {
    datepickerConfig.startingDay = 1;
    datepickerConfig.showWeeks = true;

    datepickerPopupConfig.datepickerPopup = "dd-MMMM-yyyy";
    datepickerPopupConfig.currentText = "Now";
    datepickerPopupConfig.clearText = "Erase";
    datepickerPopupConfig.closeText = "Close";
}]);
</code></pre>