indrimuska / angular-moment-picker

Angular Moment Picker is an AngularJS directive for date and time picker using Moment.js.
http://indrimuska.github.io/angular-moment-picker/
MIT License
527 stars 229 forks source link

Minutes step cant be changed #262

Open andzejsw opened 6 years ago

andzejsw commented 6 years ago

` <input type="text" class="form-control" ng-model="info.date" moment-picker="ctrl.myInput" minutes-start="0" minutes-step="1" minutes-end="59"

`

Everything worked except minutes step. Cant change this value!

mattiasnordqvist commented 5 years ago

Got the same problem. Too me, minutes-format does not seem to work either.

mattiasnordqvist commented 5 years ago

Both works if I set them through the momentPickerProvider though

kintawer commented 4 years ago

Both works if I set them through the momentPickerProvider though

Not working for me too..

SchemeSonic commented 4 years ago

It is property of momentPickerProvider, so you shouldn't use it on input tag.

himanshumittal90 commented 2 years ago

I had the same problem so below solution works for me, changes in angular-moment-picker.min.js file minutesStep: "=?", // define it in scope

wherever you find this.provider.minutesStep change it to this.$scope.minutesStep || this.provider.minutesStep

and then pass value from specific element like minutes-step="15"

it will work. If not then contact me on himu.mittal23@gmail.com