Add MatInputModule

This commit is contained in:
Simon Hanna 2018-08-20 01:07:17 +02:00
parent d521878755
commit b191a1d972
2 changed files with 6 additions and 2 deletions

View File

@ -11,6 +11,8 @@ import {MatGridListModule} from '@angular/material/grid-list';
import {MatFormFieldModule} from '@angular/material/form-field';
import {MatSelectModule} from '@angular/material/select';
import {MatButtonModule} from '@angular/material/button';
import {MatInputModule} from '@angular/material';
import { AppComponent } from './app.component';
import { OpenLPService } from './openlp.service';
@ -43,7 +45,8 @@ import { FormsModule } from '@angular/forms';
FormsModule,
MatFormFieldModule,
MatSelectModule,
MatButtonModule
MatButtonModule,
MatInputModule
],
providers: [
OpenLPService

View File

@ -14,7 +14,8 @@ template: `
</mat-select>
<br>
<mat-form-field>
<input matInput [(ngModel)]="searchText" name="searchText" placeholder="Search Text"></mat-form-field>
<input matInput [(ngModel)]="searchText" name="searchText" placeholder="Search Text">
</mat-form-field>
<br>
<button mat-raised-button color="warn" (click)="onSubmit()">Search</button>
</form>