-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
P2The issue is important to a large percentage of users, with a workaroundThe issue is important to a large percentage of users, with a workarounddocsThis issue is related to documentationThis issue is related to documentationhelp wantedThe team would appreciate a PR from the community to address this issueThe team would appreciate a PR from the community to address this issue
Description
At the bottom of https://material.angular.io/components/form-field/overview, there is a troubleshooting explanation for the error "Error: mat-form-field must contain a MatFormFieldControl".
I had a field along lines similar to the example
<mat-form-field>
<input matInput placeholder="Input">
</mat-form-field>
and I had added the matInput
directive to the input, however I still got the error.
In the end I also had to add the MatInputModule
to my material module file, on top of obviously the MatFormFieldModule
which is already documented.
I was on one of the RCs but have upgraded to 5.0 and this remains a requirement. Could you tweak the documentation to reflect this requirement,
thanks
jpitchardu
Metadata
Metadata
Assignees
Labels
P2The issue is important to a large percentage of users, with a workaroundThe issue is important to a large percentage of users, with a workarounddocsThis issue is related to documentationThis issue is related to documentationhelp wantedThe team would appreciate a PR from the community to address this issueThe team would appreciate a PR from the community to address this issue