Is there a way to dynamically set the minMode of an Angular Bootstrap Datepicker?
I managed to achieve this using the following code:
<input type="text" ng-model="myDate"
uib-datepicker-popup="{{datepickerFormat}}"
datepicker-options="{'minMode': minMode}"/>
In my Controller:
...
$scope.minMode='day';
While this method works well initially, I encountered a $compile:nonassignNon-Assignable error in the browser console when changing the minMode and reopening the datepicker. I attempted to simplify it by modifying the input code like so:
<input type="text" ng-model="myDate"
uib-datepicker-popup="{{datepickerFormat}}"
min-mode="minMode"/>
Unfortunately, this approach no longer works as expected.
Angular version: 1.5.9
Bootstrap version: 3.3.7
angular-bootstrap version: 1.2.5