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
Md Form Field is not working #6948
Comments
Please use the issue template and provide a Plunker to reproduce the issue. |
Sorry i don't know why but my plunker works: http://plnkr.co/edit/LjSqMOVm9xAo01QCBTAn?p=streamer In fact, i think i know why i had this error, i didn't import the MdInputModule. Now, i import it, also the BrowserAnimationsModule. I have a normal input with no style at all. |
Do you think i'm missing some modules to be imported ? Thanks ! |
As stated in the Material documents for Input, you have to import |
I found the problem, i thought that the style has been imported automatically. But in fact, i have to import the theme manuelly in my scss. And now it works. Thank you |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I have an error:
md-form-field must contain a MdFormFieldControl. Did you forget to add mdInput to the native input or textarea element?
This is my current html:
<form [formGroup]="form" *ngIf="form">
<md-form-field>
<input mdInput placeholder="title" name="title" formControlName="title">
</md-form-field>
</form>
and the version of my material:
"@angular/material": "^2.0.0-beta.10"
Thanks !
The text was updated successfully, but these errors were encountered: