Error
Uncaught Error: Template parse errors:
'md-form-field' is not a known element:
1. If 'md-form-field' is an Angular component, then verify that it is part
of this module.
2. If 'md-form-field' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA'
to the '@NgModule.schemas' of this component to suppress this message. ("
i have implemented angular input with angular material
url https://material.angular.io/components/input/overview
html
<form class="example-form">
<md-form-field class="example-full-width">
<input mdInput placeholder="Favorite food" value="Sushi">
</md-form-field>
</form>
after googling i found link
which says
import { MdFormFieldModule } from '@angular/material';
@NgModule({
imports: [
....
MdFormFieldModule,
....
]
app.module.ts after importing
import { MdFormFieldModule } from '@angular/material';
ERROR in D:/frontend/src/app/app.module.ts (97,10): Module '"D:/frontendapp/node_modules/@angular/material/material"' has no exported member 'MdFormFieldModule'.
- can anyone suggest what im missing.
@angular/materialversion is 2.0.0-beta.10 and there is noMdFormFieldModule, just importMdInputModuleand add it to imports array. - PengyyMdFormFieldModulewas introduced in beta.10 and it has to be imported in module imports along withMdInputModule- Faisal