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 {MatFormFieldModule} from '@angular/material/form-field';
import {MatSelectModule} from '@angular/material/select'; import {MatSelectModule} from '@angular/material/select';
import {MatButtonModule} from '@angular/material/button'; import {MatButtonModule} from '@angular/material/button';
import {MatInputModule} from '@angular/material';
import { AppComponent } from './app.component'; import { AppComponent } from './app.component';
import { OpenLPService } from './openlp.service'; import { OpenLPService } from './openlp.service';
@ -43,7 +45,8 @@ import { FormsModule } from '@angular/forms';
FormsModule, FormsModule,
MatFormFieldModule, MatFormFieldModule,
MatSelectModule, MatSelectModule,
MatButtonModule MatButtonModule,
MatInputModule
], ],
providers: [ providers: [
OpenLPService OpenLPService

View File

@ -14,7 +14,8 @@ template: `
</mat-select> </mat-select>
<br> <br>
<mat-form-field> <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> <br>
<button mat-raised-button color="warn" (click)="onSubmit()">Search</button> <button mat-raised-button color="warn" (click)="onSubmit()">Search</button>
</form> </form>