Closed Olusha closed 1 year ago
To add some context as to why it's useful to have access to MomentDateTimeAdapter
: we have a scenario where localization configuration is only available within sub-parts of the applications, resulting in us overriding OWL_DATE_TIME_LOCALE
/OWL_DATE_TIME_FORMATS
using Component.providers
. Since these tokens are injected into MomentDateTimeAdapter
we also need to create a new instance of that service at the component level, but there is no way to provide the service since MomentDateTimeAdapter
is not exported.
Thanks (and sorry for the late update). updated in latest version: https://www.npmjs.com/package/@danielmoncada/angular-datetime-picker-moment-adapter
Sorry, i am still see MomentDateTimeAdapter not exported
Hmm indeed, #10 was a noop change.
yeah sorry guys.. not sure what happened with that (guessing I didn't save the file). here's the new PR: https://github.com/danielmoncada/date-time-picker-moment-adapter/pull/11
MomentDateTimeAdapter should be exported in public-api.ts.