I am using the code sample from https://angular-ui.github.io/bootstrap/#/datepicker when I tried to integrate it to the app there is no error in the developers console.
$scope.open = function($event) {
$scope.status.opened = true;
};
html:
<p class="input-group">
<input type="text" class="form-control"
uib-datepicker-popup="{{format}}"
ng-model="PublishedDate"
is-open="status.opened"
show-weeks="true"
class="well well-sm"
custom-class="getDayClass(date, mode)"
close-text="Close" />
<span class="input-group-btn">
<button type="button" class="btn btn-default"
ng-click="open($event)">
<i class="glyphicon glyphicon-calendar"></i>
</button>
</span>
</p>
This method is executed in the controller and set the $scope.status.opened = true;
but calendar is not displayed. Can someone please say where I am doing wrong?