I want to perform some action whenever the user selects a date in the angular-ui datetimepicker.
<input type="text" class="form-control"
uib-datepicker-popup="{{dashctrl.format}}"
ng-model="dashctrl.checkOutDtDashboard"
is-open="dashctrl.popup2.opened"
datepicker-options="dashctrl.dateOptionsCheckOut"
ng-required="true"
close-text="Close"
alt-input-formats="dashctrl.altInputFormats" />
The controller is like: DashController as dashctrl
In the relevant controller where my calendar drops out, there are dates which I can select, and post selection of date, I want to perform some action.
There's already an select(dt.date)
method written on dates selection in the library but how do I use it in my controller.
I tried using
$rootScope.select
$scope.select
but these are not working in my code.