I have this piece of HTML:
<div class="item item-icon-left" ion-datetime-picker="" time="" ng-model="timeValue">
<i class="icon ion-ios-clock positive"></i>
<p><strong">{{timeValue | date:'HH:mm'}}</strong></p>
</div>
And in my controller I have this function that will fire when a toggle is activated:
$scope.funCheck = function(check) {
console.log($scope.timeValue);
};
And I use this: https://github.com/katemihalikova/ion-datetime-picker to pick a time and set it.
It works fine to pick the time, however, in the function I'm geting undefined and I dont know why. I want to get the time I picked and do some stuff in my controller with the $Scope.