@@ -64,7 +64,7 @@ <h3>Linear Horizontal Stepper Demo using a different form for each step</h3>
64
64
65
65
< md-step [stepControl] ="emailFormGroup " optional >
66
66
< form [formGroup] ="emailFormGroup ">
67
- < ng-template mdStepLabel > Fill out your phone number </ ng-template >
67
+ < ng-template mdStepLabel > Fill out your email address </ ng-template >
68
68
< md-form-field >
69
69
< input mdInput placeholder ="Email address " formControlName ="emailCtrl ">
70
70
< md-error > The input is invalid</ md-error >
@@ -139,10 +139,9 @@ <h3>Vertical Stepper Demo</h3>
139
139
</ md-step >
140
140
</ md-vertical-stepper >
141
141
142
- < h3 > Horizontal Stepper Demo</ h3 >
142
+ < h3 > Horizontal Stepper Demo with Text Label </ h3 >
143
143
< md-horizontal-stepper >
144
- < md-step >
145
- < ng-template mdStepLabel > Fill out your name</ ng-template >
144
+ < md-step label ="Fill out your name ">
146
145
< md-form-field >
147
146
< input mdInput placeholder ="First Name ">
148
147
</ md-form-field >
@@ -155,8 +154,7 @@ <h3>Horizontal Stepper Demo</h3>
155
154
</ div >
156
155
</ md-step >
157
156
158
- < md-step >
159
- < ng-template mdStepLabel > Fill out your phone number</ ng-template >
157
+ < md-step label ="Fill out your phone number ">
160
158
< md-form-field >
161
159
< input mdInput placeholder ="Phone number ">
162
160
</ md-form-field >
@@ -166,8 +164,7 @@ <h3>Horizontal Stepper Demo</h3>
166
164
</ div >
167
165
</ md-step >
168
166
169
- < md-step >
170
- < ng-template mdStepLabel > Fill out your address</ ng-template >
167
+ < md-step label ="Fill out your address ">
171
168
< md-form-field >
172
169
< input mdInput placeholder ="Address ">
173
170
</ md-form-field >
@@ -177,28 +174,14 @@ <h3>Horizontal Stepper Demo</h3>
177
174
</ div >
178
175
</ md-step >
179
176
180
- < md-step >
181
- < ng-template mdStepLabel > Confirm your information</ ng-template >
177
+ < md-step label ="Confirm your information ">
182
178
Everything seems correct.
183
179
< div >
184
180
< button md-button > Done</ button >
185
181
</ div >
186
182
</ md-step >
187
183
</ md-horizontal-stepper >
188
184
189
- < h3 > Horizontal Stepper Demo</ h3 >
190
- < md-horizontal-stepper >
191
- < md-step *ngFor ="let step of steps " [label] ="step.label ">
192
- < md-form-field >
193
- < input mdInput placeholder ="Answer " [(ngModel)] ="step.content ">
194
- </ md-form-field >
195
- < div >
196
- < button md-button mdStepperPrevious > Back</ button >
197
- < button md-button mdStepperNext > Next</ button >
198
- </ div >
199
- </ md-step >
200
- </ md-horizontal-stepper >
201
-
202
185
< h3 > Horizontal Stepper Demo with Templated Label</ h3 >
203
186
< md-horizontal-stepper >
204
187
< md-step *ngFor ="let step of steps ">
0 commit comments