1@NgModule({
2 imports: [
3 MatInputModule
4 ],
5 exports: [
6 MatInputModule
7 ]
8})
1Maybe you need to close <input> tag:
2
3<!-- Wrong -->
4<mat-form-field>
5 <input matInput>
6</mat-form-field>
7
8<!-- Right -->
9<mat-form-field>
10 <input matInput />
11</mat-form-field>
1The following Angular Material components are designed to work inside a <mat-form-field>:
2
3<input matNativeControl> & <textarea matNativeControl> (version 7 & newer)
4<select matNativeControl> (version 7 & newer)
5<input matInput> & <textarea matInput> (version 5 & 6)
6<mat-select>
7<mat-chip-list>