@@ -153,17 +153,17 @@ However, it can be overridden the same way as mentioned above.
153153
154154In order to use the custom step states, you must add the ` displayDefaultIndicatorType ` option to
155155the global default stepper options which can be specified by providing a value for
156- ` STEPPER_GLOBAL_OPTIONS ` in your application's root module .
156+ ` STEPPER_GLOBAL_OPTIONS ` in your app config .
157157
158158``` ts
159- @ NgModule ( {
159+ bootstrapApplication ( MyApp , {
160160 providers: [
161161 {
162162 provide: STEPPER_GLOBAL_OPTIONS ,
163163 useValue: { displayDefaultIndicatorType: false }
164164 }
165165 ]
166- })
166+ });
167167```
168168
169169<!-- example(stepper-states) -->
@@ -177,14 +177,14 @@ errors via the `showError` option in the `STEPPER_GLOBAL_OPTIONS` injection toke
177177will not affect steppers marked as ` linear ` .
178178
179179``` ts
180- @ NgModule ( {
180+ bootstrapApplication ( MyApp , {
181181 providers: [
182182 {
183183 provide: STEPPER_GLOBAL_OPTIONS ,
184184 useValue: { showError: true }
185185 }
186186 ]
187- })
187+ });
188188```
189189
190190<!-- example(stepper-errors) -->
@@ -213,16 +213,14 @@ viewport.
213213
214214### Localizing labels
215215Labels used by the stepper are provided through ` MatStepperIntl ` . Localization of these messages
216- can be done by providing a subclass with translated values in your application root module .
216+ can be done by providing a subclass with translated values in your app config .
217217
218218``` ts
219- @NgModule ({
220- imports: [MatStepperModule ],
219+ bootstrapApplication (MyApp , {
221220 providers: [
222221 {provide: MatStepperIntl , useClass: MyIntl },
223- ],
224- })
225- export class MyApp {}
222+ ]
223+ });
226224```
227225
228226<!-- example(stepper-intl) -->
0 commit comments