Allow multiple DateFormats in datepicker
- Dominant language
- TypeScript
- Stars
- 25k
- Forks
- 6.8k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 91
Description
#### Bug, feature request, or proposal:
feature
#### What is the expected behavior?
I want to use 2 different Date Formats in one Component.
idea
```
{
provide: MAT_DATE_FORMATS, useValue: {
"date": DATE_FORMATS,
"other": OTHER_DATE_FORMATS,
...
}
}
```
```
...
...
...
```
#### What is the current behavior?
I can replace Date Formats for component.
#### What are the steps to reproduce?
#### What is the use-case or motivation for changing an existing behavior?
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
#### Is there anything else we should know?
Contributor guide
Research direction
Start by reviewing the datepicker API and the MAT_DATE_FORMATS provider described in the issue. Determine how date formats are currently supplied and selected, then check existing datepicker tests or examples for the expected component-level behavior. Done should be defined as allowing separate date formats for different datepickers without replacing the format configuration globally.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100