angular-moment-picker icon indicating copy to clipboard operation
angular-moment-picker copied to clipboard

Minutes step cant be changed

Open andzejsw opened this issue 7 years ago • 5 comments
trafficstars

<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!

andzejsw avatar Jun 29 '18 08:06 andzejsw

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

mattiasnordqvist avatar Aug 15 '18 13:08 mattiasnordqvist

Both works if I set them through the momentPickerProvider though

mattiasnordqvist avatar Aug 15 '18 13:08 mattiasnordqvist

Both works if I set them through the momentPickerProvider though

Not working for me too..

kintawer avatar Aug 14 '19 07:08 kintawer

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

SchemeSonic avatar Dec 16 '19 11:12 SchemeSonic

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 [email protected]

himanshumittal90 avatar Apr 27 '22 06:04 himanshumittal90