Having trouble with the uib-datepicker-popup in my Angular application. It works fine in other controllers.
<input ng-click="open($event, 'delivery_time_popup')" type="text" class="form-control" uib-datepicker-popup="dd-MMMM-yyyy" show-weeks="false" ng-model="purchase_order.delivery_time" is-open="delivery_time_popup" datepicker-options="dateOptions" required close-text="Close" placeholder="Select Date">
JavaScript
$scope.open = function ($event, opened) {
console.log(opened);
$event.preventDefault();
$event.stopPropagation();
$scope[opened] = true;
};
$scope.delivery_time_popup = false;
$scope.dateOptions = {
formatYear: 'yy',
startingDay: 1
};