moment-picker cannot locale if
$scope.from = moment(new Date().toISOString());
passed as attribute value
moment-picker="from"
It sets an English as localization and ignoring locale attribute:
moment-picker="from" locale="uk"
Only if I set
$scope.from = moment(new Date().toISOString()).locale("ru");
it helps, but I cannot do this, because I set already locale to all of my moment-pickers via momentPickerProvider:
app.config(['momentPickerProvider', function (momentPickerProvider) { momentPickerProvider.options({ locale: 'uk' }); }]);
moment-picker cannot locale if
$scope.from = moment(new Date().toISOString());
passed as attribute valuemoment-picker="from"
It sets an English as localization and ignoring locale attribute:moment-picker="from" locale="uk"
Only if I set$scope.from = moment(new Date().toISOString()).locale("ru");
it helps, but I cannot do this, because I set already locale to all of my moment-pickers via momentPickerProvider:app.config(['momentPickerProvider', function (momentPickerProvider) { momentPickerProvider.options({ locale: 'uk' }); }]);