Skip to content

Commit 5acc195

Browse files
crisbetojosephperrott
authored andcommitted
compat(stepper): error in compatibility mode (angular#6989)
Fixes an error thrown by the stepper in compatibility mode. Fixes angular#6988.
1 parent 2716ae9 commit 5acc195

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/stepper/step-header.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import {Component, Input, ViewEncapsulation} from '@angular/core';
1010
import {coerceBooleanProperty, coerceNumberProperty} from '@angular/cdk/coercion';
1111
import {MdStepLabel} from './step-label';
12+
import {MATERIAL_COMPATIBILITY_MODE} from '../core/compatibility/compatibility';
1213

1314
@Component({
1415
moduleId: module.id,
@@ -19,7 +20,8 @@ import {MdStepLabel} from './step-label';
1920
'class': 'mat-step-header',
2021
'role': 'tab',
2122
},
22-
encapsulation: ViewEncapsulation.None
23+
encapsulation: ViewEncapsulation.None,
24+
providers: [{provide: MATERIAL_COMPATIBILITY_MODE, useValue: false}],
2325
})
2426
export class MdStepHeader {
2527
/** Icon for the given step. */

0 commit comments

Comments
 (0)