Skip to content
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

fix(material/datepicker): simplify DI setup #30247

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

crisbeto
Copy link
Member

Previously we had to define an injection token for the MatDateRangeInput in order to avoid circular references. Now we can do the same with a type-only imports so we can simplify the setup.

Fixes #30238.

@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Dec 29, 2024
@crisbeto crisbeto requested a review from a team as a code owner December 29, 2024 09:12
@crisbeto crisbeto requested review from amysorto and wagnermaciel and removed request for a team December 29, 2024 09:12
@crisbeto crisbeto force-pushed the 30238/date-range-di-setup branch from 0d1e741 to 983bb43 Compare December 29, 2024 20:48
Previously we had to define an injection token for the `MatDateRangeInput` in order to avoid circular references. Now we can do the same with a type-only imports so we can simplify the setup.

Fixes angular#30238.
@crisbeto crisbeto force-pushed the 30238/date-range-di-setup branch from 983bb43 to 8fda6fe Compare December 29, 2024 21:11
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Jan 3, 2025
@crisbeto crisbeto merged commit 4e04540 into angular:main Jan 3, 2025
22 checks passed
crisbeto added a commit that referenced this pull request Jan 3, 2025
Previously we had to define an injection token for the `MatDateRangeInput` in order to avoid circular references. Now we can do the same with a type-only imports so we can simplify the setup.

Fixes #30238.

(cherry picked from commit 4e04540)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: material/datepicker target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(MatDateRangeInput): export MAT_DATE_RANGE_INPUT_PARENT with DatePicker Module
2 participants