bonjour j’utilise un time picker , mais j’ai un problème de reccupération
<ionic-timepicker etime="slots.epochTime" format="slots.format" step="slots.step"
callback="timePickerCallback">
<button class="button button-block button-positive"> {{slots.epochTime}} </button>
</ionic-timepicker>
02: 15 give this value : 8100
I want to have 02:10 instead of 8100
$scope.slots = { epochTime: 54900, format: 24, step: 1 };
$scope.timePickerCallback = function (val) {
if (typeof (val) === 'undefined') {
console.log('Time not selected');
} else {
console.log('Selected time is : ', val); // `val`al will contain the selected time in epoch
}
};