katemihalikova / ion-datetime-picker

Date and/or time picker for awesome Ionic framework
MIT License
168 stars 101 forks source link

only show minutes 00,15,30,45 #84

Closed Alkasih closed 8 years ago

Alkasih commented 8 years ago

Hi, what do I need to do to make the minutes range are only 00, 15, 30, 45?

Many thanks in urgent

katemihalikova commented 8 years ago

Hi, you need to set minute-step="15", set minutes of your model value to one of 00,15,30,45 and optionally normalize the model value in ng-change event or add your own ng-model validator.