Skip to content

Commit 80f3341

Browse files
docs: update material inputs example (#324)
1 parent eb506f1 commit 80f3341

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Diff for: apps/example-app/src/app/app.module.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { StoreModule } from '@ngrx/store';
77
import { AppRoutingModule } from './app-routing.module';
88
import { MaterialModule } from './material.module';
99
import { MatIconModule } from '@angular/material/icon';
10-
import { MatLegacyListModule as MatListModule } from '@angular/material/legacy-list';
10+
import { MatListModule } from '@angular/material/list';
1111
import { MatSidenavModule } from '@angular/material/sidenav';
1212
import { MatToolbarModule } from '@angular/material/toolbar';
1313

Diff for: apps/example-app/src/app/examples/04-forms-with-material.ts

+3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ import { UntypedFormBuilder, Validators } from '@angular/forms';
66
template: `
77
<form [formGroup]="form" name="form">
88
<mat-form-field>
9+
<mat-label>Name</mat-label>
910
<input matInput placeholder="Name" name="name" formControlName="name" required />
1011
</mat-form-field>
1112
1213
<mat-form-field>
14+
<mat-label>Score</mat-label>
1315
<input
1416
matInput
1517
type="number"
@@ -23,6 +25,7 @@ import { UntypedFormBuilder, Validators } from '@angular/forms';
2325
</mat-form-field>
2426
2527
<mat-form-field>
28+
<mat-label>Color</mat-label>
2629
<mat-select placeholder="Color" name="color" formControlName="color">
2730
<mat-select-trigger>
2831
{{ colorControlDisplayValue }}

Diff for: apps/example-app/src/app/material.module.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { NgModule } from '@angular/core';
22

3-
import { MatLegacyInputModule as MatInputModule } from '@angular/material/legacy-input';
4-
import { MatLegacySelectModule as MatSelectModule } from '@angular/material/legacy-select';
3+
import { MatInputModule } from '@angular/material/input';
4+
import { MatSelectModule } from '@angular/material/select';
55
import { MatDatepickerModule } from '@angular/material/datepicker';
66
import { MatNativeDateModule } from '@angular/material/core';
77

0 commit comments

Comments
 (0)