File tree Expand file tree Collapse file tree 4 files changed +14
-14
lines changed Expand file tree Collapse file tree 4 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 55
55
< mat-card >
56
56
< div > Option groups (currentGroupedState): {{ currentGroupedState }}</ div >
57
57
58
- < mat-input-container >
58
+ < mat-form-field >
59
59
< input
60
60
matInput
61
61
placeholder ="State "
62
62
[matAutocomplete] ="groupedAuto "
63
63
[(ngModel)] ="currentGroupedState "
64
64
(ngModelChange) ="filteredGroupedStates = filterStateGroups(currentGroupedState) ">
65
- </ mat-input-container >
65
+ </ mat-form-field >
66
66
</ mat-card >
67
67
</ div >
68
68
Original file line number Diff line number Diff line change @@ -103,9 +103,9 @@ <h2>Other options</h2>
103
103
104
104
< p > It's Jazz!</ p >
105
105
106
- < mat-input-container >
106
+ < mat-form-field >
107
107
< input matInput placeholder ="How much? " #howMuch >
108
- </ mat-input-container >
108
+ </ mat-form-field >
109
109
110
110
< p > {{ data.message }} </ p >
111
111
< button type ="button " (click) ="dialogRef.close(lastCloseResult = howMuch.value) "> Close dialog</ button >
Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ <h3>Linear Vertical Stepper Demo using a single form</h3>
5
5
< mat-vertical-stepper formArrayName ="formArray " [linear] ="!isNonLinear ">
6
6
< mat-step formGroupName ="0 " [stepControl] ="formArray?.get([0]) ">
7
7
< ng-template matStepLabel > Fill out your name</ ng-template >
8
- < mat-input-container >
8
+ < mat-form-field >
9
9
< input matInput placeholder ="First Name " formControlName ="firstNameFormCtrl " required >
10
10
< mat-error > This field is required</ mat-error >
11
- </ mat-input-container >
11
+ </ mat-form-field >
12
12
13
- < mat-input-container >
13
+ < mat-form-field >
14
14
< input matInput placeholder ="Last Name " formControlName ="lastNameFormCtrl " required >
15
15
< mat-error > This field is required</ mat-error >
16
- </ mat-input-container >
16
+ </ mat-form-field >
17
17
< div >
18
18
< button mat-button matStepperNext type ="button "> Next</ button >
19
19
</ div >
@@ -23,10 +23,10 @@ <h3>Linear Vertical Stepper Demo using a single form</h3>
23
23
< ng-template matStepLabel >
24
24
< div > Fill out your email address</ div >
25
25
</ ng-template >
26
- < mat-input-container >
26
+ < mat-form-field >
27
27
< input matInput placeholder ="Email address " formControlName ="emailFormCtrl ">
28
28
< mat-error > The input is invalid.</ mat-error >
29
- </ mat-input-container >
29
+ </ mat-form-field >
30
30
< div >
31
31
< button mat-button matStepperPrevious type ="button "> Back</ button >
32
32
< button mat-button matStepperNext type ="button "> Next</ button >
Original file line number Diff line number Diff line change @@ -1901,9 +1901,9 @@ class AutocompleteWithFormsAndNonfloatingPlaceholder {
1901
1901
1902
1902
@Component ( {
1903
1903
template : `
1904
- <mat-input-container >
1904
+ <mat-form-field >
1905
1905
<input matInput placeholder="State" [matAutocomplete]="auto" [(ngModel)]="selectedState">
1906
- </mat-input-container >
1906
+ </mat-form-field >
1907
1907
1908
1908
<mat-autocomplete #auto="matAutocomplete">
1909
1909
<mat-optgroup *ngFor="let group of stateGroups" [label]="group.label">
@@ -1935,9 +1935,9 @@ class AutocompleteWithGroups {
1935
1935
1936
1936
@Component ( {
1937
1937
template : `
1938
- <mat-input-container >
1938
+ <mat-form-field >
1939
1939
<input matInput placeholder="State" [matAutocomplete]="auto" [(ngModel)]="selectedState">
1940
- </mat-input-container >
1940
+ </mat-form-field >
1941
1941
1942
1942
<mat-autocomplete #auto="matAutocomplete" (optionSelected)="optionSelected($event)">
1943
1943
<mat-option *ngFor="let state of states" [value]="state">
You can’t perform that action at this time.
0 commit comments