Skip to content

Commit 5284a57

Browse files
authored
feat(material-experimental/mdc-form-field): expose MAT_FORM_FIELD injection token (#19277)
We recently added a new injection token called `MAT_FORM_FIELD`. This token should allow form control implementers to inject the form-field without having to bring in the actual `MatFormField` as a side-effect. We should expose that token from the MDC form-field entry-point too, as that will ease the migration. Also it would be unexpected if an application switches to the MDC-based form field, but would still need to import from the non-MDC form field entry-point.
1 parent d3c00c3 commit 5284a57

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/material-experimental/mdc-form-field/public-api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*/
88

99
export {
10+
MAT_FORM_FIELD,
1011
MatFormFieldControl,
1112
getMatFormFieldDuplicatedHintError,
1213
getMatFormFieldMissingControlError,

0 commit comments

Comments
 (0)