You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to extend MatDateRangeInput component and I wanna provide MAT_DATE_RANGE_INPUT_PARENT to use my extended class instead,
the issue here is the MAT_DATE_RANGE_INPUT_PARENT is not exported with DatePicker Module, is the any chance to export it so it wll be easy to use it.
Thanks
Use Case
import {MAT_DATE_RANGE_INPUT_PARENT , MatDateRangeInput} from '@angular/material/datepicker'; // MAT_DATE_RANGE_INPUT_PARENT is not exported from datepicker
The text was updated successfully, but these errors were encountered:
albahrawy
added
feature
This issue represents a new feature or feature request rather than a bug or bug fix
needs triage
This issue needs to be triaged by the team
labels
Dec 26, 2024
albahrawy
changed the title
feat(COMPONENT): MatDateRangeInput
feat(MatDateRangeInput): export MAT_DATE_RANGE_INPUT_PARENT with DatePicker Module
Dec 26, 2024
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.
Fixesangular#30238.
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.
Fixesangular#30238.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Dec 29, 2024
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.
Fixesangular#30238.
Feature Description
I'm trying to extend MatDateRangeInput component and I wanna provide MAT_DATE_RANGE_INPUT_PARENT to use my extended class instead,
the issue here is the MAT_DATE_RANGE_INPUT_PARENT is not exported with DatePicker Module, is the any chance to export it so it wll be easy to use it.
Thanks
Use Case
import {MAT_DATE_RANGE_INPUT_PARENT , MatDateRangeInput} from '@angular/material/datepicker';
// MAT_DATE_RANGE_INPUT_PARENT is not exported from datepicker
@component({
providers: [
{ provide: MAT_DATE_RANGE_INPUT_PARENT , useExisting: CSDateRangeInput },
],
})
export class CSDateRangeInput extends MatDateRangeInput{}
The text was updated successfully, but these errors were encountered: