-
Notifications
You must be signed in to change notification settings - Fork 6.8k
docs(material/datepicker): clarify moment adapter package #22820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(material/datepicker): clarify moment adapter package #22820
Conversation
@@ -351,7 +351,7 @@ The easiest way to ensure this is to import one of the provided date modules: | |||
*Please note: `MatNativeDateModule` is based off the functionality available in JavaScript's | |||
native [`Date` object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Date). | |||
Thus it is not suitable for many locales. One of the biggest shortcomings of the native `Date` | |||
object is the inability to set the parse format. We highly recommend using the `MomentDateAdapter` | |||
object is the inability to set the parse format. You can use the `MomentDateAdapter` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The thing is we also don't recommend the NativeDateAdapter
. Should we add something about what we do recommend? (Which I guess currently is to just write your own 😬)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the text to strong recommend anything but the native adapter, with moment and other being possible options.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Clarifies that the moment date adapter lives in its own npm package. Also removes language about _recommending_ the moment adapter. Fixes angular#18539
666a3ad
to
d26b2cb
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Clarifies that the moment date adapter lives in its own npm package.
Also removes language about recommending the moment adapter.
Fixes #18539