Skip to content

feat(MatDateRangeInput): export MAT_DATE_RANGE_INPUT_PARENT with DatePicker Module #30238

Closed
@albahrawy

Description

@albahrawy

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{}

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functionsarea: material/datepicker

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions